xp_msver is a extended stored procedure, to get some valuable information in SQL Server.
EXEC master.dbo.xp_msver
Will return,
Most important parameters that I can think of is, ProductVersion (not a big deal since you can get this from ServerProperty function), ProcessorCount, Physical Memory.
Next question is, why you would need this?
Let’s say, you need to set the Maximum Degree of the Parallelism (MAXDOP) as a function of number of Processor count. For example, some DBAs want to have MAXDOP to, ProcessorCount – 2.
Similarly you can set the memory allocation as well.
Download relevant script from here
No comments:
Post a Comment