Truncate timing out

BobbyH

Member
One of our developers is getting a "resource busy" error when trying to truncate a small table on a dev database. Nothing else going on at the time but a "delete from" works OK. Ideas?
Thanks.
 
I think truncate is considered a DDL statement, and therefore the table needs to be locked. This restriction does not apply to the delete statement.
 
Back
Top