All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
ASP.NET,MVC,Framework体验(1):从一个简单实例开始_[Asp.Net教程]
如何用C#写一个简单的Login窗口_.net资料_编程技术
ASP.NET页面事件_.net资料_编程技术
SQL,Server数据库查询优化50妙计_mssql学习_编程技术
PHP实例:PHP如何实现在线发邮件_[PHP教程]
使用c#捕获windows的关机事件_.net资料_编程技术
C#教程:DLL动态链接库的故障排除工具
在atlas里面的UpdatePanel控件中调用javascript,以及updatePanel的_[Asp.Net教程]
如何实现将Excel表(含多张数据库表)导入数据库(SQLServer)_[SQL,Server教程]
浏览UTF-8编码的网页出现空白解决方法_php资料_编程技术
Reading number is top 10 pictures
Absolutely shocked. National geographic 50 animal photographys10
Exquisite decoration is not paying too much2
黑社会大哥相亲
Ashlynn Brooke a group sexy photo3
美丽的风景--让你目瞪口呆
Take you to walk into the most true north Korea rural1
壮丽的云彩2
做运动的校花1
Beautiful Japanese beauty(漂亮的日本美女)
到底是谁撞谁呀?
Download software ranking
中国结婚习俗实录
Unix video tutorial1
功夫熊猫2(上集)
SP3 for SQL2000
DreamWeaver8
Tram sex maniac 2 (H) rar bag13
matrix2
VC++6.0培训教程
Tram sex maniac 2 (H) rar bag4
少妇苏霞全本
归海一刀 published in(发表于) 2014/2/1 0:21:02 Edit(编辑)
得出SQL语句的执行时间的方法_[SQL,Server教程]

得出SQL语句的执行时间的方法_[SQL,Server教程]

得出SQL语句的执行时间的方法_[SQL Server教程]

在网上找的:


--SQL语句前加:
declare @d datetime
set @d=getdate()
--SQL语句
--在SQL语句后加:
select [语句执行花费时间(毫秒)]=datediff(ms,@d,getdate())

这个查询结果不能在查询分析器中直观显示出来,自己改进了一下:

--SQL语句前加:
declare @d datetime
set @d=getdate()
--SQL语句
--在SQL语句后加:
select @d AS '开始时间', getdate() AS '结束时间' , datediff(ms,@d,getdate()) AS '执行时间'

不过这个方法不能对本身耗时很少的查询得出结果。不知有别的什么软件和方法能得出SQL语句的确切的执行时间。





添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.