dbTalk Databases Forums  

can a single task read, update and lookup on same table ???

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss can a single task read, update and lookup on same table ??? in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Antonio Lopez Arredondo
 
Posts: n/a

Default can a single task read, update and lookup on same table ??? - 05-06-2004 , 09:12 PM






hi all !!!

I have two diifferent tasks that reads from table XYZ, does a lookup at the
same table XYZ and finally updates also table XYZ. in order to avoid
deadlock situations I use "with(nolock)" where ever possible (source query
and lookup).

both tasks run independently (at different times) and show different
behavior:

* one of them never starts, its status remains as "started" and never
changes.

* the other one starts and processes 1000 records, then it seems to stop
working (no error, no advance).

any light on what could happen is very welcome.

best regards,
ant.




Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: can a single task read, update and lookup on same table ??? - 05-07-2004 , 02:55 AM






Why would you need to perform a lookup on the same table. Your Query itself
should be taking care of that. As for why it seems to hang then yes I would
definitely suspect blocking.

Does sp_who2 have any entries in the blkby attribute?



--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Antonio Lopez Arredondo" <adog (AT) someplace (DOT) com> wrote

Quote:
hi all !!!

I have two diifferent tasks that reads from table XYZ, does a lookup at
the
same table XYZ and finally updates also table XYZ. in order to avoid
deadlock situations I use "with(nolock)" where ever possible (source query
and lookup).

both tasks run independently (at different times) and show different
behavior:

* one of them never starts, its status remains as "started" and never
changes.

* the other one starts and processes 1000 records, then it seems to stop
working (no error, no advance).

any light on what could happen is very welcome.

best regards,
ant.






Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.