1 line script to truncate (delete all rows without logging the transactions) all tables within a SQL Server database.
[code='sql']
exec sp_MSforeachtable "truncate table ? PRINT'? truncated '"
[/code]
1 line script to truncate (delete all rows without logging the transactions) all tables within a SQL Server database.
[code='sql']
exec sp_MSforeachtable "truncate table ? PRINT'? truncated '"
[/code]