Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Determine protocol of a given sql connection

Tags:

sql-server

I'm trying to see what connection protocol a given connection to sql 2008 is using (be it shared memory, named pipes, or tcp/ip)...I'm not seeing this info in the sql activity monitor. Is there some place I can view this?

like image 522
Jonas Avatar asked Oct 20 '25 01:10

Jonas


1 Answers

The sys.dm_exec_connections DMV has the physical connection info, including protocol used:

select net_transport from sys.dm_exec_connections 
where session_id = @@spid
like image 166
Remus Rusanu Avatar answered Oct 22 '25 05:10

Remus Rusanu