在我的现有数据库504表中 [英] In my Existing Database 504 tables

查看:128
本文介绍了在我的现有数据库504表中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,

我的报价是一个表关系与多少个表相关.如何找出表的关系.我需要如何通过sql命令找出关系.

Dear All,

my quation is one table relation to how many tables related. how to find out table relation. i need how to find out relation through sql command .

推荐答案

要查看依赖于表的对象:
To view objects which are depend on a table :
EXEC sp_MSdependencies N'TableName', null, 1315327



查看表所依赖的对象:



To view objects on which a table depend on :

EXEC sp_MSdependencies N'TableName', null, 1053183



从这里摘录:
http://www.mssqltips.com/sqlservertip/1294/listing-sql-server -object-dependencies/ [ ^ ]

希望对您有帮助.



Extracted from here :
http://www.mssqltips.com/sqlservertip/1294/listing-sql-server-object-dependencies/[^]

Hope it helps.


上面的方法是正确的解决方法

< b>
EXEC sp_depends``Customers''</b>
ya above is right solution

<b>
EXEC sp_depends ''Customers''</b>


这篇关于在我的现有数据库504表中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆