获取SQLServer存储过程执行时间

gongpu 2004-12-07 03:43:57
获取SQLServer存储过程执行时间
...全文
236 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
gongpu 2004-12-08
  • 打赏
  • 举报
回复
谢谢各位,我其实想知道在vb中如何用进度条控件来显示数据库备份进度
lwbandy 2004-12-07
  • 打赏
  • 举报
回复
daclare @T datetime,@OperationTime decimal(10,2)
select @T=getdate()
exec procname
select @OperationTime=datediff(ms,@T,getdate())

sdhdy 2004-12-07
  • 打赏
  • 举报
回复
--modify 楼上的
declare @time1 datetime
select @time1 = getdate()
exec 存储过程名
select @time1 as 开始时间, getdate() as 结束时间, datediff(ms,@time1,getdate()) as 运行时间
txlicenhe 2004-12-07
  • 打赏
  • 举报
回复
declare @time1
select @time1 = getdate()
exec 存储过程名
select @time1 as 开始时间, getdate() as 结束时间, datediff(ms,@time1,getdate()) as 运行时间

34,593

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server相关内容讨论专区
社区管理员
  • 基础类社区
  • 二月十六
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧