查询
SELECT compatibility_level FROM sys.databases WHERE name = '数据库名'; 或者 SELECT name ,compatibility_level ,recovery_model_desc FROM sys.databases WITH(NOLOCK) where name = '数据库名';修改
EXEC sp_dbcmptlevel 数据库名, 80 或者 ALTER DATABASE 数据库名 SET COMPATIBILITY_LEVEL = 90