Here is a tip on a better way to empty a large table in database than using DELETE statement.
smallwei
12:33 pm on October 22, 2009
Use TRUNCATE statement.
- DELETE writes to the log, where as TRUNCATE does not.
- TRUNCATE table removes all rows from a table, but the table structure and its columns, constraints, indexes etc., remains as it is.
smallwei 12:33 pm on October 22, 2009
Use TRUNCATE statement.
- DELETE writes to the log, where as TRUNCATE does not.
- TRUNCATE table removes all rows from a table, but the table structure and its columns, constraints, indexes etc., remains as it is.