Table sysobjects 在 SQL Server 2005 之后已更改或不再存在。等效项是什么?

Table sysobjects has changed or does not longer exist after SQL Server 2005. What is the equivalent?

我正在查看 sql 服务器上的升级兼容性报告并看到以下错误:

Table sysobjects 在 SQL Server 2005 之后已更改或不再存在。使用它可能会导致错误。详情请见:X行Y列

我们正在迁移到 SQL 服务器 2016 我需要用什么来替换 sysobjects。

生成上述 110 兼容性消息的存储过程部分如下所示:

SELECT name FROM sysobjects

Many of the system tables from earlier releases of SQL Server are now implemented as a set of views. These views are known as compatibility views, and they are meant for backward compatibility only. The compatibility views expose the same metadata that was available in SQL Server 2000. However, the compatibility views do not expose any of the metadata related to features that are introduced in SQL Server 2005 and later. Here you can find the list of System Compatibility Views

此外,如果您在 google 中搜索 sysobject/other "old" 系统 table,首先会写入的是 table已弃用,请改用 new_ system_view,这样您可以找到新的