查看链接服务器依赖关系sql server 2008 [英] View linked server dependencies sql server 2008
问题描述
有没有人知道如何查看依赖于Sql Server 2008中的链接服务器的所有表/视图/存储过程。基本上好像上下文菜单查看依赖关系是否可访问链接服务器? p>
任何帮助不胜感激。
谢谢
搜索
SELECT OBJECT_NAME(object_id),*
FROM sys。 sql_modules
WHERE定义LIKE'%myLinkedServer%'
或使用 / strong> 红门SQL搜索也要这样做一个GUI
没有跟踪服务器级链接服务器对象和数据库级对象之间的依赖关系的表或功能
注意:INFORMATION_SCHEMA视图和旧版syscomments截断定义,因此对于定义搜索是不可靠的。
Does any know how / if it is possible to view all tables/views/stored procedures that depend on a linked server in Sql Server 2008. Basically as if the context menu "View dependencies" was accessible for linked servers?
Any help much appreciated.
Thanks
Search for it
SELECT OBJECT_NAME(object_id), *
FROM sys.sql_modules
WHERE definition LIKE '%myLinkedServer%'
Or use the free Red gate SQL Search to do the same with a GUI
There is no table or feature that tracks dependencies between the server-level linked server objects and database-level objects
Note: INFORMATION_SCHEMA views and the legacy syscomments truncate the definition so are unreliable for definition searches.
这篇关于查看链接服务器依赖关系sql server 2008的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!