Find the Version and Edition of a SQL instance

I’ve got a lot of Virtual Machines for development, and that means a lot of SQL installs. They’re not all the same edition, though, or versions, or service packs. It can be a bit confusing knowing which one I’m dealing with. And I can never remember how to find out – so here is the reminder…

capture

So:

select serverproperty('productversion'), serverproperty('productlevel'), serverproperty('edition')

3 thoughts on “Find the Version and Edition of a SQL instance

  1. … and a little bit deeper:
    USE master
    EXEC xp_msver; — without optname for the whole result
    GO

    CU
    tosc

  2. Cool tip. Still like the first query, ‘cos it tells me the edition and level more obviously, but the stored procedure you’ve mentioned gives a lot more information about the environment

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>