Mega Code Archive

 
Categories / MSSQL Tutorial / System Settings
 

Returning the Current Connections Session ID (SPID)

4>  SELECT @@SPID SPID 5> GO SPID ------     51 (1 rows affected) 1>