SQL Server Performance, DBA Best Practices & Enterprise Data Solutions | MyTechMantra
Home » SQL Server » How to Get SQL Server Instance Information

How to Get SQL Server Instance Information


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

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



Different Ways to Get SQL Server Information

There are different ways to get System and SQL Server Information for any server and all the options are mentioned below for your quick reference.

  • How to Get System and SQL Server Information using TSQL script
  • How to Get System and SQL Server Information using SQLCMD
  • How to Get SQL Server Configuration Information Using SQL Server Management Studio

Important Note: To make any configuration changes to your SQL Server Instance like Manage SQL Server Services, Configure Network Protocols, and Network Connectivity Configuration, etc always use SQL Server Configuration Manager. Read the Best Practices.



How to Get System and SQL Server Information using T-SQL script

Execute the below mentioned T-SQL script to retrieve all the System and SQL Server Information.

Use master
GO

EXEC xp_msver
"ProductName"
, "ProductVersion"
, "Language"
, "Platform"
, "WindowsVersion"
, "PhysicalMemory"
, "ProcessorCount"
GO
Retrieve SQL Server Information Using TSQL Code

How to Get 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


How to Get SQL Server Configuration Information Using SSMS

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.

Retrieve SQL Server Information Using SSMS


Conclusion

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.

Ashish Kumar Mehta

Ashish Kumar Mehta is a distinguished Database Architect, Manager, and Technical Author with over two decades of hands-on IT experience. A recognized expert in the SQL Server ecosystem, Ashish’s expertise spans the entire evolution of the platform—from SQL Server 2000 to the cutting-edge SQL Server 2025.

Throughout his career, Ashish has authored 500+ technical articles across leading technology portals, establishing himself as a global voice in Database Administration (DBA), performance tuning, and cloud-native database modernization. His deep technical mastery extends beyond on-premises environments into the cloud, with a specialized focus on Google Cloud (GCP), AWS, and PostgreSQL.

As a consultant and project lead, he has architected and delivered high-stakes database infrastructure, data warehousing, and global migration projects for industry giants, including Microsoft, Hewlett-Packard (HP), Cognizant, and Centrica PLC (UK) / British Gas.

Ashish holds a degree in Computer Science Engineering and maintains an elite tier of industry certifications, including MCITP (Database Administrator), MCDBA (SQL Server 2000), and MCTS. His unique "Mantra" approach to technical training and documentation continues to help thousands of DBAs worldwide navigate the complexities of modern database management.

Follow us

Don't be shy, get in touch. We love meeting interesting people and making new friends.