将兼容级别更改为 SQL Server 2005 以下示例将 AdventureWorks 数据库的兼容级别更改为 90。 EXEC sp_dbcmptlevel 'AdventureWorks', '90';