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.
Share
For SQL Server 2005+ sys.dm_exec_connections has “net_transport” column
sysprocesses has a
net_librarycolumn valid for older SQL Server tooSo, a
SELECT net_library FROM sys.sysprocesses WHERE SPID = 123 /* use @@SPID for current connection */will give you this info.