Different ways to retrieve System and SQL Server Information

June 25, 2013


In this article we will take a look at different ways in which a DBA to retrieve System and SQL Server Information. The method mentioned is applicable for SQL Server 2005 and higher versions.

Below mentioned are some of the key information which a DBA would be keen to know about the instance they manage:-

  • SQL Server Edition
  • Platform 32 bit or 64 bit of SQL Server Installation
  • SQL Server Version
  • Language of installed product
  • Total RAM
  • Number of CPUs
  • Operating System Version
  • Root directory where the instance is installed
  • Is it a clustered or non clustered server
  • Server Collation
  • Have you enabled Always on Availability Feature (Only if the instance is SQL Server 2012)

To retrieve the above information, open SQL Server Management Studio -> connect to the SQL Server Instance -> right click Instance -> select Properties to open up Server Properties. In the General Page you would see the relevant information.

Newsletter Signup

Retrieve SQL Server Information Using SSMS

Retrieve System and SQL Server Information using TSQL script

You can also retrieve similar information by executing the below mentioned TSQL script.

Use master

EXEC xp_msver
, "ProductVersion"
, "Language"
, "Platform"
, "WindowsVersion"
, "PhysicalMemory"
, "ProcessorCount"

Retrieve SQL Server Information Using TSQL Code

Retrieve System and SQL Server Information using SQLCMD

Connect to SQL Server Instance using SQLCMD and paste the below mentioned command to retrieve the relevant SQL Server and System information.

D:\Program Files\Microsoft SQL Server\110\Tools\Binn>sqlcmd -E -S "MYTECHMANTRA\SQL2012" -Q "exec xp_msver 'ProductName', 'ProductVersion', 'Language', 'Platform', 'WindowsVersion', 'PhysicalMemory', 'ProcessorCount'"

Retrieve SQL Server Information Using SQLCMD


In this article you have seen how easily a DBA can retrieve System and SQL Server Information from server which they manage day to day.

Share this Article

Continue Free Learning...

  • Please leave below your valuable feedback for this article.
  • Feel Free to refer this article to your friends and colleagues using the below “Share this Article” option.
  • Do subscriber to our News Letter to continue your free learning.
  • Don’t forget to Like Us on Facebook and do follow us on Twitter for latest updates.

Geeks who read this article also read…

Follow @MyTechMantra on Twitter
We're on Facebook

"Receive newsletters and special offers about SQL Server, BizTalk and SharePoint from MyTechMantra. We respect your privacy and you can unsubscribe at any time."