SELECT
a.id [Const ID],
a.parent_obj [ID],
b.name [Table Name],
a.name [PK Name],
c.name [Column Name]
FROM sysobjects a, sysobjects b, syscolumns c
WHERE a.parent_obj = b.id and a.xtype = 'PK' and b.xtype = 'U'
and b.id = c.id and c.typestat = 3
order by 3
SELECT
a.id [Const ID],
a.parent_obj [ID],
b.name [Table Name],
a.name [PK Name],
c.name [Column Name]
FROM sysobjects a, sysobjects b, syscolumns c
WHERE a.parent_obj = b.id and a.xtype = 'PK' and b.xtype = 'U'
and b.id = c.id and c.typestat = 3
order by 3
도움 되시길..
이 외에도 dbo.sysOOOO이란 이름의 테이블과 시스템 뷰들을 뒤져보시면..
유용한 정보들이..^^;
그럼..수고하세요..