You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1ae1e1b
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: content/troubleshooting.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -396,6 +396,16 @@ Start with one non-production target and a narrow object selection. Read the com
396
396
397
397
For repeated work, create reusable connections with `Connect-DbaInstance` and pass the returned objects to later commands. This keeps authentication and connection choices explicit and avoids reconnecting for every operation.
398
398
399
+
### How do I check the SQL Server error log?
400
+
401
+
If a dbatools command returns an error, use `Get-DbatoolsError` to capture the detailed error information:
402
+
403
+
```powershell
404
+
Get-DbatoolsError
405
+
```
406
+
407
+
This shows the same information as `$Error[0] | Select *` but formatted for easier reading.
408
+
399
409
## Still stuck?
400
410
401
411
Before asking for help, reduce the problem to the smallest reproducible command in a clean session. Include:
0 commit comments