- Copy the script into Query window
- Select the appropriate database
- Select "Query Result to Text" from the Query Menu
- Execute the script
- Copy the result/ output script in the query window
- If there are multiple foreign keys (More than one) from same child table to the same Master table; change the key name to FK1_, FK2_ etc. This option is better than adding column names in the key name.
- Select the same database
- Execute the script
- Validate the foreign key names changed.
*Note-
FK_ChildTableName_Parent_Table_Name is considered as standard primary key notation