Empty a Database
To stop the import of ‘already there’ data (twice) I needed to empty every table. Its a very, very good idea to back up your databases before using this code. It empties a whole database in one go!
-- empty database use SomeDatabaseName -- ** change to subject database first & *** CHECK SERVER NAME ** go EXEC sp_MSForEachTable 'TRUNCATE TABLE [?]'
No comments:
Post a Comment