标签:style class code color get string set rgb com line file
1.测试sql语句执行时间的方法,获得时间差
declare
@end_date
datetime
select
@begin_date =
getdate()
--要执行的sql语句
select
@end_date =
getdate()
select
datediff(ms,@begin_date,@end_date)
as
‘用时/毫秒‘
SET
STATISTICS
io
ON
SET
STATISTICS
time
ON
go
--要执行的sql语句
go
SET
STATISTICS
profile
OFF
SET
STATISTICS
io
OFF
SET
STATISTICS
time
OFF
标签:style class code color get string set rgb com line file
原文地址:http://www.cnblogs.com/RiKi-hou/p/3702626.html