Home Forums Article Discussions Article Discussions by Author Discuss content posted by Jorge Novo Truncate All Tables RE: Truncate All Tables
Jorge Novo-@ETLDEVDBA
Ten Centuries
Points: 1265
More actions
June 3, 2008 at 9:47 am
#823729
The proper syntax should be:
EXEC sp_MSForEachTable 'ALTER TABLE ? NOCHECK CONSTRAINT ALL'
where the ? is been replace for the table name