Skip to main content

SQL Server statement to identify SQL Server's listening ports, by reading through SQL Server's error logs.

use master;
go

xp_readerrorlog 0, 1, N'Server is listening on';
go