CONNECTIONPROPERTY()

For a request that comes in to the server, this function returns information about the connection properties of the unique connection which supports that request.

Signature

CONNECTIONPROPERTY ( property )

Parameters

  • property — The property of the connection. *property* can have one of these values:

Examples

SELECT   
ConnectionProperty('net_transport') AS 'Net transport',   
ConnectionProperty('protocol_type') AS 'Protocol type';
TCP|TSQL

Run against SQL Server 16.0.4265.3 on 2026-09-13. This is the output we got, not the documentation’s.

Signature and description adapted from the Microsoft SQL documentation, used under the CC BY 4.0. SQL Server and Azure are trademarks of the Microsoft group of companies. This page is not affiliated with Microsoft.