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.

No comments:

Post a Comment