Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Truncate table lock issue

$
0
0

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 ? 


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>