Search

Showing posts with label SPID. Show all posts
Showing posts with label SPID. Show all posts

Wednesday, 25 May 2011

SELECT @@spid

SELECT @@spid

Using @@SPID to return the SessionID of the T-SQL session that the statements are currently in.