How to get the Port Number of SQL server

Whenever I need to get the port number of SQL server then I need to execute some script of xp_regread but in some environment I don't have this feature enabled as it is undocumented SP it is not recommended one to get the Port number of sql server or you need to go to the serve

2.5 Star
1,418 times
Add to favorites
E-mail Twitter Digg Facebook