You are a database administrator responsible for maintaining a SQL Server 2005 instance. You get a call from the corporate help desk saying that database users are complaining about poor query performance. You need to see what queries are currently consuming the most SQL Server 2005 resources. What do you do?
- Use SQL Server Profiler using the Tuning template.
- Use SQL Server Profiler using the TSQL_Duration template.
- Query the sys.dm_exec_query_stats DMV.
- Query the sys.dm_exec_query_plan DMV.
You are the database administrator for you company. Marion, a junior developer, has asked you to tune a store procedure. The stored procedure reads a [Products] table four times to calculate four different reports. The problem is that ...