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

230 reads

Technical Article

Generate all database table DDL

This script starts in the master database, and then goes to each USER database and creates the DDL for each USER table in every database.  You can then save the results or copy them to a new query window to run on another server.

2003-11-14

457 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

228 reads

Blogs

Daily Coping 7 Feb 2023

By

Today’s coping tip is to go to bed in good time and allow yourself...

Tales From The Field Weekly Wrap Up for the Week of 01-31-2023

By

 Hello Dear Reader!  After a weekend with a lot of activities, it was a...

Creating a Flyway Desktop Shadow Database in PostgreSQL

By

In order to generate migrations, we need to configure Flyway to use a shadow...

Read the latest Blogs

Forums

Converting nested Json document to SQL data

By mandavli

I have response from a API that look like { "responseCode": 200, "message": "success",...

Converting nested Json document to SQL data

By mandavli

I have response from a API that look like { "responseCode": 200, "message": "success",...

To Drop or Not to Drop (the temp table question)

By Brandie Tarvin

So here's a thing that I've been told several times over the past few...

Visit the forum

Ask SSC Logo Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers