“Debug”(get information) on a running stored procedure in MS Sql Server

烂漫一生 提交于 2020-01-16 06:06:05

问题


i aked myself if it is possible in MS SQL-Server 2005 to get information of a running stored procedure. Because meanwhile it is executing for more than 8 hours, i would like to know on what step it is or if it is even actually running at all. MS SSMS says that it is still executing the query.

Thanks in advance, Tim


回答1:


sql Profiler can help you: http://www.databasejournal.com/features/mssql/article.php/3750161/Introduction-to-SQL-2005-Profiler-Part-1.htm




回答2:


Use Print statements?

Update a log table?



来源:https://stackoverflow.com/questions/3883111/debugget-information-on-a-running-stored-procedure-in-ms-sql-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!