我用过 sp_depends
第一次这样
sp_depends TestTable
结果我得到了一些存储过程和 View 。现在,当我查看(Ctrl F for
TestTable
)存储过程和 View 的脚本时,我没有看到它们指的是 TestTable
.如果不使用脚本,是否还有其他依赖项?如果是如何?
最佳答案
sp_depends
是史前和不可靠的。
This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature. Use sys.dm_sql_referencing_entities and sys.dm_sql_referenced_entities instead.
更好的是,考虑使用 Red Gate 的免费 SQL 搜索工具......
关于sql-server - SQL Server 中的 sp_depends,可能的依赖关系是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12178111/