Capture Stored Procedures
-
Saturday, December 08, 2012 7:02 PM
Hi,
How to capture the currently running stored procedures on production server using SQL Server 2005?
- Edited by KIRAN KUAMR Sunday, December 09, 2012 5:40 AM
All Replies
-
Saturday, December 08, 2012 7:19 PM
There are some tools on my web site that may help you:
beta_lockinfo - http://www.sommarskog.se/sqlutil/beta_lockinfo.html
this will give you a snapshot of what is going on right, including current stored procedure and statement. You need to have at least VIEW SERVER STATE to run it.sp_sqltrace - http://www.sommarskog.se/sqlutil/sqltrace.html
This tool permits you to run a trace filtered for a certain process for a while (default 10 seconds) and then summarises the data. You need the same permissions as to run Profiler, but everything is executed server-side.
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se- Proposed As Answer by Pieter Geerkens Sunday, December 09, 2012 4:48 PM
-
Saturday, December 08, 2012 8:06 PM
Without Using traces/profiler methods, Is there any queries to find out the which stored procedures are currently running on sql server 2005?
-
Saturday, December 08, 2012 9:15 PMModerator
The following forum thread is on the same topic:
How can i know which stored procedure is executed when and by which program?
Kalman Toth SQL 2008 GRAND SLAM
New Book: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2012- Marked As Answer by Iric WenModerator Monday, December 17, 2012 6:53 AM
-
Saturday, December 08, 2012 10:17 PM
Did you look at my beta_lockinfo?
If you don't have VIEW SERVER STATE permission, the answer is plain and simple: No.
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se- Marked As Answer by Iric WenModerator Monday, December 17, 2012 6:53 AM
-
Sunday, December 09, 2012 4:04 PM
Hi,
Determine the Currently Executing
Ahsan Kabir Please remember to click Mark as Answer and Vote as Helpful on posts that help you. This can be beneficial to other community members reading the thread. http://www.aktechforum.blogspot.com/

