以文本方式查看主題 - 昂捷論壇 (http://m.yzsenyi.com/bbs/index.asp) -- □-技術(shù)研討會 (http://m.yzsenyi.com/bbs/list.asp?boardid=36) ---- 怎么查看一個SQL語句的執(zhí)行統(tǒng)計信息 (http://m.yzsenyi.com/bbs/dispbbs.asp?boardid=36&id=5033) |
-- 作者:大腦袋 -- 發(fā)布時間:2009/2/20 10:19:22 -- 怎么查看一個SQL語句的執(zhí)行統(tǒng)計信息 在查詢分析器里面,執(zhí)行下面語句,就可以打開統(tǒng)計開關(guān),這樣執(zhí)行sql后, 就有統(tǒng)計信息輸出 --打開統(tǒng)計信息 set statistics io on set statistics time on 不用的時候,可以用這個關(guān)閉統(tǒng)計信息 --關(guān)閉統(tǒng)計信息 set statistics io off set statistics time off |
-- 作者:sysbor -- 發(fā)布時間:2009/2/20 10:52:48 -- SQL Server 分析和編譯時間: (1851 行受影響) SQL Server 執(zhí)行時間: |