How can I detect which version of SQL (eg SQL 2008 or SQL Azure)
-
21-09-2019 - |
Question
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?
Solution
A good place to start might be: Programmatically detect SQL Server Edition.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow