Hi,
I have a table where I reset the identity field upon inserting new data. I truncate the old data before inserting to accomplish this.
However, I have read that using "truncate" invalidates the transaction log. I've never really figured out what this means and if it is a problem.
That being the case, is it better to use DBCC CHECKIDENT than truncate if I want to reset the identity field?
Thanks
I have a table where I reset the identity field upon inserting new data. I truncate the old data before inserting to accomplish this.
However, I have read that using "truncate" invalidates the transaction log. I've never really figured out what this means and if it is a problem.
That being the case, is it better to use DBCC CHECKIDENT than truncate if I want to reset the identity field?
Thanks