views:

75

answers:

1

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?

+1  A: 

A good place to start might be: http://stackoverflow.com/questions/602677/programmatically-detect-sql-server-edition.

Brisbe42
Thanks, SELECT SERVERPROPERTY ('edition') returns "SQL Data Services" in SQL Azure CTP August 2009
Mark Redman

related questions