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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Duplicate foreign keys.
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Posting Yak Master

160 Posts

Posted - 10/30/2006 :  00:08:08  Show Profile  Reply with Quote
Hi all,

SQL server allows to create as many as foreign key constraints on a same table for a same column.

Will this affect the design or performance in anyway ?

Naming the constraint would be a good way to avoid this.But in case if someone has already created, How do I remove the existing duplicate keys ?

For Example , I have 2 tables Author and Book. I could execute the below query n times and create as many as foreign keys I want.

REFERENCES Authors (AuthorID)


Thanks is advance,


Flowing Fount of Yak Knowledge

2167 Posts

Posted - 10/30/2006 :  08:37:52  Show Profile  Reply with Quote
Why dont you:
1) Try it and find out?
2) Read BOL (Books OnLine) and see what it says about Foreign Key Constraints.

Make sure you backup your database first.

[Signature]For fast help, follow this link:
Learn SQL
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000