从快照数据库中检查查看依赖项
我想找到所有在数据库中调用从快照数据库的视图的对象。 对于在数据库中创建的对象,可以使用视图依赖项选项。 有什么方法可以找到快照数据库中创建的视图?
I want to find all objects in which view from snapshot database is called in the database.
For objects created in the database, that is possible using View Dependencies option.
Is there any way to find that out for views created in snapshot database?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当然。我假设您想回答“视图引用什么对象?”的问题。您可以在以下查询中找到:
显然,
humanResources.vemployee
在您的视图中(我使用了Ventailing AdventureWorks2019数据库作为测试)。Sure. I'm assuming that you want to answer the question "what objects does the view reference?". You can find that with the following query:
Obviously replace
HumanResources.vEmployee
with your view (I used the venerable AdventureWorks2019 database as a test).