Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Better Script to Get SQL Server Port Number

By Charles Hawkins,

You don't have to try and decipher what instance you are running. The extended stored procedure xp_instance_regread does all the functionality of xp_regread and automatically knows which instance in the registry it should look at.

Total article views: 1019 | Views in the last 30 days: 2
 
Related Articles
FORUM

How to find installed instances

Instances

FORUM

Instance name

Instance name

FORUM

MAXIMUM instance

MAXIMUM instance

FORUM

changing instance name

instance name

FORUM

SQL Server Instance startup

Instance startup

Tags
miscellaneous    
t-sql    
 
Contribute