How can I detect which version of SQL (eg SQL 2008 or SQL Azure)

Posted by Mark Redman on Stack Overflow See other posts from Stack Overflow or by Mark Redman
Published on 2009-09-03T21:02:13Z Indexed on 2010/04/09 5:43 UTC
Read the original article Hit count: 1303

Filed under:

I need to detect which version of SQL I am dealing with to perorm various tasks, I need specifically detect if I am on SQL 2008 or SQL Azure.

How can I do this with detection code written in SQL?

© Stack Overflow or respective owner

Related posts about sql-azure

Related posts about sql-server-2008