Monthly Archives: July 2011

Two ways to know the underlying OS version number by T-SQL

The very quick one is select @@version. Another way is to take advantage of extended stored procedure xp_msver, for example, exec xp_msver ‘WindowsVersion’.

Posted in T-SQL Script | Leave a comment