2013-12-11 184 views
2

当我尝试兼容级别在SQL Server 2012中设置为80:如何在SQL Server 2012中设置兼容级别80?

ALTER DATABASE database_name SET COMPATIBILITY_LEVEL = 80; 

我得到以下错误:

Msg 15048, Level 16, State 1
Valid values of the database compatibility level are 90, 100, or 110.

是否有任何变通办法?

+0

[see this](http://stackoverflow.com/questions/5624262/understanding-compatibility-level-in-sql-server)&& [this](http://msdn.microsoft.com/en-us /library/bb510680.aspx) –

+5

为什么你认为你需要使用80个兼容级别?是否因为你正在使用20年前应该停止使用的'* ='或'= *'连接? :-) –

回答

7

你所要求的是根本不可能的; SQL Server 2012不支持80的兼容级别。您需要使用90或更高版本。