Skip to content

Commit 1ae1e1b

Browse files
Update troubleshooting.md
1 parent 053dc09 commit 1ae1e1b

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎content/troubleshooting.md‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,16 @@ Start with one non-production target and a narrow object selection. Read the com
396396

397397
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.
398398

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+
399409
## Still stuck?
400410

401411
Before asking for help, reduce the problem to the smallest reproducible command in a clean session. Include:

0 commit comments

Comments
 (0)