Presentation on theme: "How to solve a SQL performance problem Paul Zgondea."— Presentation transcript:
How to solve a SQL performance problem Paul Zgondea
Agenda DBA monitoring tools Finding the culprit Optimization time
First Response of a DBA What do you do when somebody asks you to investigate what’s stressing out the SQL server? What tools do you use ? What do you do when the SQL Server is too busy to accept your connection ?
Dedicated Admin Connection Enable DAC EXEC sp_configure 'remote admin connections', 1; GO RECONFIGURE GO
sp_whoisactiveby Adam Machanic Alternative for sp_who and sp_who2 Why it’s better: Runs quickly and does not use a lot of resources. Shows only the active queries (no sleeping and system processes) Shows how long the queries have been running for Shows the formatted SQL Text and Plan (@get_plans = 1) Shows waits information Shows CPU, Tempdb information,