If my SQL Server has the following specs:
6.05.02 SQL-DMO6.50.252 DB-Library
Which version do I have? And which service pack version do I have?
If you want to query the version of SQL Server that’s currently running you can use the @@version variable:
This returns the version, processor, build and service pack information for the currently installed SQL Server. This information is stored in the system tables, and you can retrieve more details by calling the extended stored procedure xp_msver. Be sure to call it from the master database.