benvegiard
Programmer
Using PerfMon, Profiler, and some other tools, I can see that Full Table Scans are popping off. However, I cannot find an easy way to determine WHICH queries are forcing these scans. My SQL2K db has about 1,900 procs in it! I am currently going through them based on things such as high duration, I/O and CPU costs, but it seems there should be a way to use profiler to see what is causing the table scans.
Additionally, I know that sometimes SQL Server will simply perform a table scan on “small” tables (tables with only a few hundred rows) rather than “bother” to use an appropriate index. Are these included in the Table Scan counters/flags?
As a side note, I have basically the exact same question regarding linking recompiles to their source procedures.
Thanks,
Ben
Additionally, I know that sometimes SQL Server will simply perform a table scan on “small” tables (tables with only a few hundred rows) rather than “bother” to use an appropriate index. Are these included in the Table Scan counters/flags?
As a side note, I have basically the exact same question regarding linking recompiles to their source procedures.
Thanks,
Ben