Syntax: TRUNCATE TABLE tablename
- When the table referenced by a FOREIGN KEY constraint, TRUNCATE TABLE is not applicable; instead, use DELETE statement without a WHERE clause.
- TRUNCATE TABLE doesn't do log, then it cannot activate a trigger.
- TRUNCATE TABLE will reset IDENTITY value to its base value then if you want to have another value for your IDENTITY enabled column, you need to call DBCC CHECIDENT
No comments:
Post a Comment