set statistics io onset statistics time onselect ProcessYear, ProcessMonth, VisionAccountNumber, CustomerName from UN_MonthlyCMS where ProcessYear = 2013 and ProcessMonth = 1 and VisionAccountNumber = '1234'select ProcessYear, ProcessMonth, VisionAccountNumber from UN_MonthlyCMS where ProcessYear = 2013 and ProcessMonth = 1 and VisionAccountNumber = '1234'select ProcessYear, ProcessMonth, VisionAccountNumber, CustomerName from UN_MonthlyCMS with (index (IDX_MonthlyCMS_ProcessYear_ProcessMonth_VisionAccountNumber_CreditPlanNumber)) where ProcessYear = 2013 and ProcessMonth = 1 and VisionAccountNumber = '1234'set statistics time offset statistics io off
SQL Server parse and compile time: CPU time = 0 ms, elapsed time = 1 ms.(0 row(s) affected)Table 'UN_MonthlyCMS'. Scan count 1, logical reads 355528, physical reads 7, read-ahead reads 216495, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.SQL Server Execution Times: CPU time = 2312 ms, elapsed time = 147795 ms.SQL Server parse and compile time: CPU time = 0 ms, elapsed time = 0 ms.(0 row(s) affected)Table 'UN_MonthlyCMS'. Scan count 1, logical reads 4, physical reads 4, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.SQL Server Execution Times: CPU time = 0 ms, elapsed time = 35 ms.(0 row(s) affected)Table 'Worktable'. Scan count 0, logical reads 0, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.Table 'UN_MonthlyCMS'. Scan count 1, logical reads 4, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.SQL Server Execution Times: CPU time = 0 ms, elapsed time = 0 ms.