Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all !!

I need to delete a relationship from my database. Please tell me how to to so. My sql server is not letting me do this through design mode.
Posted

1 solution

You might want to try something like:
SQL
ALTER TABLE SomeTable
DROP CONSTRAINT fk_some_foreign_key

Also look for other enforced constraints that might prevent you from dropping the reference.

Good luck!
 
Share this answer
 
Comments
ujjwal uniyal 23-May-12 4:08am    
Thank you E.F.Nijboer. It worked. :) I've been banging my head over this since morning.. :P
E.F. Nijboer 23-May-12 6:31am    
ouch! Glad I could help so that's over ;-)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900