Sqlserver-dba.com

SQL Server xp_msver

SQL Server xp_msver is a SQL Server system stored procedure, returning general sql server information I find it useful for gathering basic server build and server information. Run it as EXEC master..xp_msver

 I use it when I need gather information for a SQL Server Inventory audit. I use the process outlined in Powershell - run script on all sql servers  . This iterates through a list of servers , executes a script and returns the script output.

 The information it returns is :

 ProductName

ProductVersion

Language

Platform

Comments

CompanyName

FileDescription

FileVersion

InternalName

LegalCopyright

LegalTrademarks

OriginalFilename

PrivateBuild

SpecialBuild

WindowsVersion

ProcessorCount

ProcessorActiveMask

ProcessorType

PhysicalMemory

Product ID

Xp_msver 

SQL Server xp_msver  could also be stored in a table – where you could then analyse the data.

In this example , I’m using a temp table , but you could create a permanent system table .

Server information 


Author: Jack Vamvas (http://www.sqlserver-dba.com)

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment


sqlserver-dba.com | SQL Server Performance Tuning | SQL Server DBA:Everything | FAQ | Contact