摘要:SQL語法效能
這是一篇測量您的SQL語法效能
DECLARE @START DATETIME, @STOP DATETIMESET @START = GETDATE()
WAITFOR DELAY '00:00:00.080' -- 利用延遲語法來做延遲80 ms,在此區塊放置你所撰寫的SQL Script
SET @STOP = GETDATE()
SELECT 'The Execution took ' + CONVERT(varchar(10), DATEDIFF(ms, @START, @STOP)) + ' ms'
轉載於http://subocheng.blogspot.com/2007/05/sql-script.html
但語由於本身並未真正的使用過