Tips & Troubleshooting — Trace Replay
Azure SQL Managed Instance
The tool automatically detects Azure MI (Engine Edition = 8) and:
- Hides the local file target option
- Shows the Azure Blob Storage URL field
- Displays an informational banner about MI limitations
- Defaults to ring_buffer storage
Tips for Azure MI
- ring_buffer size: Increase to 128+ MB for heavy workloads
- Azure Blob Storage: Recommended for production-level capture volumes
Command-Line Arguments
DBLenseTraceReplay.exe [-s server] [-u user] [-p password] [-e]
| Arg | Description |
-s, --server | Source server name |
-u, --user | SQL login username |
-p, --password | SQL login password |
-e | Use Windows Authentication |
Troubleshooting
| Issue | Solution |
| "Cannot create event session" | Ensure you have ALTER ANY EVENT SESSION permission |
| No events captured | Check the database filter; ensure workload is running |
| Azure MI file target error | Use ring_buffer or Azure Blob Storage URL |
| High error count during replay | Check target database exists; verify permissions; increase command timeout |
| Missing events in ring_buffer | ring_buffer has size limits; increase buffer or use file/blob target |
System Requirements
| Component | Requirement |
| OS | Windows 10/11 or Windows Server 2016+ |
| Runtime | .NET 8.0 (or self-contained package) |
| SQL Server | SQL Server 2012+ (for Extended Events) |
| Azure | Azure SQL Managed Instance (fully supported) |
| Permissions | ALTER ANY EVENT SESSION on source; appropriate permissions on target |
| Installation | None — single portable .exe |