Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQL Server 2008 compatibility with SQL Server 2005

What is the best way to use SQL Server 2008 as a development database, but ensure that the database is compatible with SQL Server 2005?

like image 909
Brad Leach Avatar asked Aug 11 '08 05:08

Brad Leach


People also ask

Is SQL Server 2008 R2 compatible with Windows Server 2016?

SQL Server 2008 R2 is not supported on Windows 10 or Windows Server 2016. SQL Server 2008 is not supported on Windows 10 or Windows Server 2016.

What is SQL Server compatibility level?

SQL Server compatibility level is one of the database settings. It helps to keep the database compatible with SQL server versions. By default compatibility level of the database is lower than the SQL server version. It impacts many objects in the server.

Can I run SQL 2008 and SQL 2012 on the same server?

Generally yes. Your services on 2008 R2 will continue running normally unless you manually make some changes. Only impact that sql 2012 can have is if you plan to run some performance intensive operations but nothing else apart from that.

Is SQL Server 2005 supported?

After 10 great years, extended support for all versions of SQL Server 2005 is coming to an end on April 12, 2016.


1 Answers

This can be done via SQL Enterprise Manager or like this:

ALTER DATABASE <database> 
SET COMPATIBILITY_LEVEL = { 80 | 90 | 100 }

Use 90 for 2005 compatibility.

This replaces the functionality used for previous releases, the stored procedure sp_dbcmptlevel.

like image 112
vzczc Avatar answered Sep 22 '22 02:09

vzczc