sql-server - SQL Server 中的 sp_depends,可能的依赖关系是什么?

标签 sql-server stored-procedures views depends

我用过 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/

相关文章:

sql - 如何使用更新表上的多个联接更新 SQL Server 上的表? (从加入)

Azure CosmosDB 存储过程将函数参数更改为较小的大小写

Java:将数组发送到 PL-SQL 函数

MySQL动态变量被截断

laravel-5 - 如何在 laravel 5.1 中使用工匠制作 View

sql-server - 用于 Rails 的 SQL Server 适配器

sql - 简化多个子查询

c# - 如何知道 Linq To SQL 中的字段是否为数字

node.js Express - 如何异步获取部分 View

Drupal : how to sort and display nodes grouping by first letter in view