1)查看兼容級別:web
select * from sys.databASEs 可查看全部庫的兼容級別sql
2)修改兼容級別:spa
a、使用存儲過程EXEC sp_dbcmptlevel '庫名', '80';orm
b、ALTER DATABASE database_name
SET COMPATIBILITY_LEVEL = { 80 | 90 | 100 } 【sql2008支持】ci
兼容級別的值:
80 = SQL Server 2000
90 = SQL Server 2005
100 = SQL Server 2008it