Learn more about SQL Server tools

mssqltips logo

Tutorials          DBA          Dev          BI          Career          Categories          Webcasts          Scripts          Today's Tip          Join

Tutorials      DBA      Dev      BI      Categories      Webcasts

DBA    Dev    BI    Categories


SQL Server Instance Objects

By:   |   Updated: 2006-08-15   |   Comments   |   Related: More > SQL Server Configurations

When it comes time to review server related information from your SQL Server be sure to know how and where to access the information.  With SQL Server 2005 some of the resources have changed and new resources have popped up.  This tip outlines core server related information from SQL Server 2000 to 2005.

Mapping server information between SQL Server 2000 and 2005 is critical to ensure scripts are working properly when upgrading to SQL Server 2005. Below outlines the common server related objects.

ID Information SQL Server 2000 SQL Server 2005
1 System table\view with all server related information for the local, remote and linked servers SELECT *
FROM master.dbo.sysservers
FROM master.sys.servers;
2 General SQL Server metrics for 1 server sp_helpserver 'ProdSQL1'
sp_helpserver 'ProdSQL1';
3 Listing of the server wide configurations sp_configure
EXEC sp_configure;
4 Configures server options for remote or linked servers sp_serveroption 'ProdSQL1', 'collation compatible', TRUE
sp_serveroption 'ProdSQL1', 'collation compatible', TRUE;
5 System function returning server information such as the collation, edition, instance name, security configuration, etc. for the SQL Server SELECT SERVERPROPERTY('Edition')
6 Approximately 30 connection related parameters primarily for ODBC EXEC sp_server_info
EXEC sp_server_info;
7 Function to return the SQL Server instance name SELECT @@SERVERNAME
8 System stored procedure to return the sort order and character set for the SQL Server sp_helpsort
EXEC sp_helpsort;
9 Listing of the active processes sp_who2 active
EXEC sp_who2 active;
10 System table\view with real time system processes in SQL Server whether the process (spid) is active, sleeping, etc. SELECT *
FROM master.dbo.sysprocesses
SELECT * FROM sys.dm_exec_sessions;

SELECT * FROM sys.dm_exec_connections;

Next Steps

Last Updated: 2006-08-15

get scripts

next tip button

About the author
MSSQLTips author Jeremy Kadlec Since 2002, Jeremy Kadlec has delivered value to the global SQL Server community as an MSSQLTips.com co-founder and Edgewood Solutions SQL Server Consultant.

View all my tips
Related Resources

Post a comment or let the author know this tip helped.

All comments are reviewed, so stay on subject or we may delete your comment. Note: your email address is not published. Required fields are marked with an asterisk (*).

*Name    *Email    Email me updates 

Signup for our newsletter
 I agree by submitting my data to receive communications, account updates and/or special offers about SQL Server from MSSQLTips and/or its Sponsors. I have read the privacy statement and understand I may unsubscribe at any time.


Learn more about SQL Server tools