Delete Data

Technical Article

T-SQL script to purge all the tables including foreign key references

  • Script

T-SQL script to purge all the tables including foreign key references. The script has been made smart enough to use TRUNCATE wherever there is no foreign key reference and to use DELETE wherever there is foreign key reference.

5 (3)

You rated this post out of 5. Change rating

2019-12-10

2,157 reads

Blogs

Using a tnsnames.ora file with the Microsoft Connector for Oracle in SSIS

By

One of the nice things about the Microsoft Connector for Oracle is that it...

ChatGpt Experiments–Getting Documentation

By

I get asked questions by salespeople all the time. Usually this is because a...

A New Word: Jouska

By

jouska – a hypothetical conversation that you compulsively play out in your head –...

Read the latest Blogs

Forums

Azure SQL Revealed: A Guide to the Cloud for SQL Server

By Site Owners

Comments posted to this topic are about the item Azure SQL Revealed: A Guide...

Refresh Limits

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Refresh Limits

How Many Days Can You Survive?

By Steve Jones - SSC Editor

Comments posted to this topic are about the item How Many Days Can You...

Visit the forum

Ask SSC Logo Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers

Question of the Day

Refresh Limits

See possible answers