Posted by Erland Sommarskog on 06/21/05 13:53
(arijitchatterjee123@yahoo.co.in) writes:
> NV_DAILY is my Database.And after that the tempdb can't create any
> #table on the same name until that procedure commits the
> transaction.Any advice is acceptable.Thanks in advance.
Try this:
BEGIN TRANSACTION
CREATE TABLE #temp(a int NOT NULL PRIMARY KEY)
Run from two windows. This does not block on the machine I tested.
I'm sorry, but you will have to examine more in detail, why you get
blocking. Maybe there is something special in your code that gives you
blocking. But I can't sit and guess from a distance what may be.
You could post the entire output from aba_lockinfo. Please put in an
attachment, so that the lines don't get wrapped.
--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinfo/productdoc/2000/books.asp
[Back to original message]
|