Find out which version of SQL Server 2005 or 2008 is installed in the machine

So, blogging after a super long hibernation. Good to be back!
I was trying to install SP3 for SQL Server 2005 and it kept failing on me. Got so frustrated until I found this nifty little query that does just that. Gives the version of SQL Server installed. đŸ™‚
Here it is!
SELECT @@VERSION
GO

SELECT SERVERPROPERTY(‘productversion’), SERVERPROPERTY (‘productlevel’), SERVERPROPERTY (‘edition’)

So there ya go!
For further info see http://support.microsoft.com/kb/933508
Have fun!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s