怎么在企业管理器中得到执行一个select语句的毫秒级时间
2011-03-10 22:25
288 查看
方法一:
declare @d datetime
set @d=getdate()
select * from authors where au_fname='dirk'
select 执行时间=datediff(ms,@d,getdate())
方法二:
set statistics time on
select * from authors where au_fname='dirk'
set statistics time off
declare @d datetime
set @d=getdate()
select * from authors where au_fname='dirk'
select 执行时间=datediff(ms,@d,getdate())
方法二:
set statistics time on
select * from authors where au_fname='dirk'
set statistics time off
相关文章推荐
- mybatis一个select标签执行多个sql语句
- 怎么得到执行复杂的算法时需要的时间量
- select语句的结果集直接发向客户端的(一个SQL语句会前后进行各种调用,包括解析(parse)调用、执行(executive)调用、获取(fetch)调用)
- 31.VC(custom)=怎么得到执行复杂的算法时需要的时间量
- 一个Web报表项目的性能分析和优化实践(一):小试牛刀,统一显示SQL语句执行时间
- oracle 中--怎么查看当前表空间在作什么操作?--查锁,死锁,当前执行时间长的Sql语句,没提交的事务,对象为哪些进程所用
- 得到sql语句执行时间
- 一个Web报表项目的性能分析和优化实践(一):小试牛刀,统一显示SQL语句执行时间
- sql语句中有insert然后有个select@@identity,该怎么执行
- 在.net里得到一个asp.net页面的执行时间
- oracle中得到一条SQL语句的执行时间的两种方式
- oracle中得到一条SQL语句的执行时间的两种方式
- 一个Web报表项目的性能分析和优化实践(一):小试牛刀,统一显示SQL语句执行时间
- oracle中如何得到一条SQL语句的执行时间
- (转载)PHP怎么获取MySQL执行sql语句的查询时间
- 一个Web报表项目的性能分析和优化实践(一):小试牛刀,统一显示SQL语句执行时间
- 在数据库中查看一个sql语句的执行时间和SP2-0027错误
- [置顶] 一个Web报表项目的性能分析和优化实践(一):小试牛刀,统一显示SQL语句执行时间
- 得到SQL语句执行时间
- oracle 中--怎么查看当前表空间在作什么操作?--查锁,死锁,当前执行时间长的Sql语句,没提交的事务,对象为哪些进程所用