Life with SQL
Experiences with Sql server
Friday, August 01, 2008
Getting the ForeignKeys Base and Reference Tables in a Database
select d.name as fk,b.name as base,c.name as ref from sysforeignkeys a, sysobjects b, sysobjects c,sysobjects d
where b.id=a.fkeyid
and c.id=a.rkeyid
and d.id=a.constid
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Visitors Count
Links
sql 2008 Features
http://www.mssqltips,com
http://www.sqlteam.com
Blog Archive
►
2009
(4)
►
February
(1)
►
January
(3)
▼
2008
(11)
▼
August
(4)
Excel:Sorting Excel Sheets using VB Macro
Cleaning Phone Numbers using CTE
Getting the ForeignKeys Base and Reference Tables ...
Sending Email in SSIS without using the Sendmail Task
►
July
(3)
►
June
(3)
►
April
(1)
►
2007
(5)
►
May
(3)
►
March
(1)
►
February
(1)
►
2006
(9)
►
October
(1)
►
September
(2)
►
August
(3)
►
July
(3)
Do you find this Blog useful
No comments:
Post a Comment