SQL Clone
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

View Active Session SQL

By David Kranes,

To run this script, first either specify a SPID in the SET command within the script to return a specific SPID or comment it out to return all non-system SPID's.  This was written for SQL Server 2005 and 2008.

Total article views: 4236 | Views in the last 30 days: 1