Click here to Skip to main content
15,899,679 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
How to rename Foreign Key Using Sql Script.
My Existing Foreign Key Name is FK_POrd_GMPartyBank
and I want to rename it to FK_POrd_AMBank

Please Help Me.....
Posted
Comments
RAHOOL SONI 14-Mar-12 9:33am    
GO IN YOUR DATATABLE RELATIONSHIP MGNT.. THEN CHANGE UR RELATION...

Either go with DominicZA
else have a look Here[^]
 
Share this answer
 
In your script drop the the key, then recreate it with the new name. As far as I know there is no other way.
 
Share this answer
 
Comments
Herman<T>.Instance 14-Mar-12 9:27am    
correct

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