首页 > 代码库 > sqlserver执行时间和自行效率

sqlserver执行时间和自行效率

SET STATISTICS PROFILE ON --SET STATISTICS IO ON --SET STATISTICS TIME ONdeclare @dtm datetimeSQL语句print ‘添加person临时表数据:‘+convert(varchar(10),DATEDIFF(ms,@dtm,getdate())) select @dtm=GETDATE()SQL语句print ‘添加person临时表数据:‘+convert(varchar(10),DATEDIFF(ms,@dtm,getdate())) select @dtm=GETDATE()SET STATISTICS PROFILE OFF--SET STATISTICS IO OFF--SET STATISTICS TIME OFF