Home Forums SQL Server 2005 SQL Server 2005 General Discussion How to: Rename foreign key constraint RE: How to: Rename foreign key constraint
PaulFenton
SSC Veteran
Points: 231
More actions
January 22, 2016 at 6:44 am
#1853777
Here's a script that I've used in the past to rename all constraints - it can handle Primary Keys, Foreign Keys, Defaults, Unique Constraints and Check Constraints.
http://paulfentonsql.co.uk/2016/01/22/rename-all-constraints/[/url]