Forum Replies Created

Viewing post 1 (of 1 total)

  • RE: Truncate All Tables

    What's wrong with this:

    EXEC sp_MSforeachtable @command1 = 'alter table ? nocheck constraint all'

    EXEC sp_MSforeachtable @command1 = 'delete from ?'

    EXEC sp_MSforeachtable @command1 = 'alter table ? check constraint all'

Viewing post 1 (of 1 total)