Find your Sql Server Version and Edition

When working with Sql Reporting Services or other features that are version-specific, I often need to know what version of Sql Server is running on the target server.

For Sql 2000 and newer, you can simply query: