You are here: Re: Locking on Tempdb... « MsSQL Server « IT news, forums, messages
Re: Locking on Tempdb...

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация