Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Finding constraints

Author  Topic 

lols
Posting Yak Master

174 Posts

Posted - 2008-09-13 : 07:00:26
Hello,

I want to find all the pk and fk constraint on all tables in northwind db

Please help in SQL 2000 code

karthickbabu
Posting Yak Master

151 Posts

Posted - 2008-09-13 : 07:10:48
http://blog.sqlauthority.com/2006/11/01/sql-server-query-to-display-foreign-key-relationships-and-name-of-the-constraint-for-each-table-in-database/

================================================

When you realize you've made a mistake, take immediate steps to correct it.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-09-13 : 13:53:53
Have a look at INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE catalog view.
Go to Top of Page

Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)

7020 Posts

Posted - 2008-09-14 : 13:03:09
Find Table Reference Levels
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=72957

CODO ERGO SUM
Go to Top of Page
   

- Advertisement -