Hi,
In my SQL2000 stored procedure, there are 9 truncate table commands.
But the the stored procedure is take above 15 minutes to execute.
In this stored procedure, truncate table command has no problem.
But an insert query into that table is very slow.
In the insert query, select some views output and insert into the table. But these select output is very slow.
I search some forums. They said that lock problem for the object. Query execution delayed for a exclusively accessed object.
How can I remove the lock for my strored procedure running faster ?