SQL Server/T-SQL Tutorial/System Settings/SPID
Версия от 13:46, 26 мая 2010; (обсуждение)
Returning the Current Connection"s Session ID (SPID)
4> SELECT @@SPID SPID
5> GO
SPID
------
51
(1 rows affected)
1>4> SELECT @@SPID SPID
5> GO
SPID
------
51
(1 rows affected)
1>