Created
February 6, 2024 22:02
-
-
Save coryasilva/25cf949507ad6e9db4fc6fc7979afec9 to your computer and use it in GitHub Desktop.
MSSQL get port
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select distinct local_net_address, local_tcp_port | |
from sys.dm_exec_connections | |
where local_net_address is not null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment