Technical Article

Foreign Key DDL wizard

This script can be run when you want to do batch processing on a database, such as a dynamic truncate statement for all tables in your database.  This script will actually script all the Foreign Keys in your database, and then store them into a table called FOREIGN_KEY_TEMP.  It will then generate, and execute, all […]

2004-01-22

219 reads

Technical Article

Generate all database foreign keys

This script will create another script that has all foreign key DDL that exists in a given database.   You only have to run this, and then select the results of this script and paste it into another query window, or if for some reason you have lost your DDL this will enable you to retrieve […]

2003-11-12

225 reads

Blogs

Daily Coping 23 May 2022

By

I started to add a daily coping tip to the SQLServerCentral newsletter and to...

Cloud Formations – A New MVP Led Training Initiative

By

Hello, data friends! Let me spread a few words about the new MVP led...

Daily Coping 20 May 2020

By

I started to add a daily coping tip to the SQLServerCentral newsletter and to...

Read the latest Blogs

Forums

How to change datasource on multiple reports deployed to power bi report server

By olegserdia

Each query in power bi report has it's own connection string. If something wrong...

Call multiple packages based on result set of the query

By komal145

Hi, I have a query like "Select tablenumber from a table" Tablenumber 1 2...

LDF is not automatically shrinked with simple recovery mode

By mnemonicator

Hi there, we have SQL Server 2014 (Build - 12.0.6259.0) and my database have...

Visit the forum

Ask SSC Logo Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers