Technical Article

Truncate data from all tables in a database

,

This script will truncate data from all tables in a database

sp_msforeachtable @command1 = "print 'Truncating data from table ?'", @command2 = "TRUNCATE TABLE ?"

Rate

5 (1)

You rated this post out of 5. Change rating

Share

Share

Rate

5 (1)

You rated this post out of 5. Change rating