Sometimes there can be certain older versions of SQL Server databases exist in your current SQL Server instance. If you want to check the compatibility level of all the databases in your current SQL Server instance following script might be helpful.
1 2 3 4 5 6 7 8 9 10 11 |
SELECT name as [Databse Name], compatibility_level AS [Compatibility Level], CASE compatibility_level WHEN 65 THEN 'SQL Server 6.5' WHEN 70 THEN 'SQL Server 7.0' WHEN 80 THEN 'SQL Server 2000' WHEN 90 THEN 'SQL Server 2005' WHEN 100 THEN 'SQL Server 2008/R2' WHEN 110 THEN 'SQL Server 2012' WHEN 120 THEN 'SQL Server 2014' END as [SQL Server Version] FROM sys.databases |
Leave a Comment