concept performance problem in category sql

appears as: performance problem, performce problems, performce problems
SQL Server DMVs in Action: Better Queries with Dynamic Management Views

This is an excerpt from Manning's book SQL Server DMVs in Action: Better Queries with Dynamic Management Views.

No one ever says their queries are running too fast; instead, users typically report how slow their queries seem to be running. Taking the slow-running query as an example of a performance problem, you can use the DMVs to inspect the query’s cached plan to determine how the query is accessing its data, how resources are being used (for example, if indexes are being used or table scans), or if the statistics are out of date, as well as to identify any missing indexes and to target the particular statement or access path that’s causing the slowness. Later we’ll look at interpreting the cached plan with a view to identifying performance bottlenecks.

To help with debugging, I provided a script that shows where the time is spent within a batch of SQL queries. This was contrasted with what is provided by the query plan. The simple and lightweight trace utility should prove useful in helping to quickly and easily identify performance problems and program flow.