摘要: SELECT TOP 10 a.creation_time, total_worker_time/execution_count AS avg_cpu_cost, plan_handle, execution_count, (SELECT SUBSTRING(text, statement_start_offset/2 + 1, (CASE WHEN statement_end_offset = -1 THEN LEN(CONVERT(nvarchar(max), text)) * 2 ELSE statement_end_offset END - statement_start_offset 阅读全文
posted @ 2012-04-01 09:50 Easy999000 阅读(441) 评论(0) 推荐(0)