Once upon a time, I remember running some TSQL which would display which network protocol (e.g. named pipes, TCP/IP) was being used by each active session - but I can't remember the actual code. Does anyone know how to do this ? An input parameter might have been SPID. The code was useful for diagnostic purposes.
views:
17answers:
1
+3
A:
For SQL Server 2005+ sys.dm_exec_connections has "net_transport" column
sysprocesses has a net_library
column valid for older SQL Server too
So, a SELECT net_library FROM sys.sysprocesses WHERE SPID = 123
will give you this info
gbn
2010-08-19 05:19:48
thanks gbn, you are like the Jon_Skeet of SQL Server :)
Moe Sisko
2010-08-19 05:35:53