Monday, 26 August 2013

Get tcp port from Sqlconnection

Get tcp port from Sqlconnection

In my code, I have to get tcp port to which sqlserver connect. I only have
SqlConnection(System.Data.SqlClient.SqlConnection) object, what is the
best way to get the tcp port from my SqlConnection object in C#?

No comments:

Post a Comment