显示sql server的查询语句运行时间,具体到毫秒

显示sql server的查询语句运行时间,具体到毫秒
declare     @ct     datetime    
  
set     @ct     =     getdate ()   
  
-- -   
   -- sql   语句   

  
-- -   
   select     datediff (ms,    @ct    , getdate ())    as     ' 查询时间(毫秒) '  

你可能感兴趣的:(显示sql server的查询语句运行时间,具体到毫秒)