Relaciones con Sql Server | SQL Server Performance Forums

SQL Server Performance Forum – Threads Archive

Relaciones con Sql Server

Gente : como se puede saber cuantas relaciones o Foreign key tiene una tabla?
Desde ya muchas gracias.
Ya encontre la respuesta : select name
from sysobjects
where id in
(select constid from sysforeignkeys where fkeyid = object_id(‘nombre_tabla’) or rkeyid = object_id(‘nombre_tabla’)) Gracias!!!
También puedes encontrarla usando en Administrador Corporativo, tablas, dise;o, relaciones. Luis Martin
Moderator
SQL-Server-Performance.com All postings are provided “AS IS” with no warranties for accuracy.
o puedes usar sp_help
]]>