- Stored Procedures / RPC:Completed
- Stored Procedures / SP:StmtCompleted
- TSQL / SQL:BatchCompleted
- TSQL / SQL:BatchStarting (sometimes)
Columns:
- Event Class (auto-selected)
- Duration
- TextData
- SPID
- Reads
- RowCounts
- Writes
- StartTime
- EndTime
- ObjectName (useful to know context)
- EventSequence (sometimes helpful for context)
- CPU
- IntegerData
- DatabaseName
- LoginName
- ApplicationName (not always populated)
- BinaryData (for ShowplanXML)
Once the Events & Columns are selected and organized I'll setup Column filters:
- Duration greater than or equal to a number, i.e. 1000 = 1 second in SQL 2008 Profiler.
- Database equals or not equals (if applicable).
Use PerfMon to check general performance with these key events:
- Memory – Available MBytes
- Paging File – % Usage
- Physical Disk – Avg. Disk sec/Read
- Physical Disk – Avg. Disk sec/Write
- Physical Disk – Disk Reads/sec
- Physical Disk – Disk Writes/sec
- Processor – % Processor Time
- SQLServer: Buffer Manager – Buffer cache hit ratio
- SQLServer: Buffer Manager – Page life expectancy
- SQLServer: General Statistics – User Connections
- SQLServer: Memory Manager – Memory Grants Pending
- SQLServer: SQL Statistics – Batch Requests/sec
- SQLServer: SQL Statistics – Compilations/sec
- SQLServer: SQL Statistics – Recompilations/sec
- System – Processor Queue Length