Generate Add Foreign Keys statements for the table

I was going through the painfull optimization of the database of creating better clustered indexes (not the default ones on the primary key).This operation was requiring removing all foreign keys to this table and then recreation them again.I created this script to optimize this quite tidious task.

1 (1)

2006-06-08 (first published: )

736 reads

Blogs

Azure Arc

By

Azure arc is another great stuff coming with Microsoft Azure, as we were expecting...

Built-in Duotone Image Filter, Editor Navigation via Persistent List View, and Other Block Editor Improvements

By

The next batch of exciting updates to the block editor is live on WordPress.com....

Are You a Diverse User Group or Event?

By

One of the things that I’ve seen crop up at various points in my...

Read the latest Blogs

Forums

Log shipping performing log backups despite its backup jobs being disabled

By alexhdavies

Hi Came across an odd issue this evening. Running a migration over the weekend...

Granting Schema Permissions

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Granting Schema Permissions

Lots of Data and AI Helping Firefighters

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Lots of Data and AI...

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers