Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
smueller72
Starting Member
4 Posts |
Posted - 2007-02-07 : 17:19:27
|
Hi all - I'm posting/reposting a question I posted on Google Groups hoping I might get a better response here. This one has me baffled. --------------------------------------------------------------------Hi all - I've got the craziest situation going on with one of my DTSpackages. Specifically, I have a package that includes a number ofData Driven Query tasks that hangs on one of the tasks only after thefirst of the month. I will run without a hitch from about the 6 or7th of a given month but between the 1st and the 6th or 7th it hangs.I know this sounds crazy. I've thrown the specific package into thedebugger and what is happening is that it processes the first record -does an Update Query - gets to the 'End Function' statement and thenjust sits. Thinking it may be related to something in the data thatis only present after the 1st of a new month, I went ahead andresorted the source query so that it processes a different record andthe same issue occured. I've also checked for any scheduled processesthat I have running only on the first of the month that may have arecord/table/db locked but I haven't been able to identify anything.As the subject line suggests, I know this sounds crazy and it iscertainly driving me crazy but any ideas/assistance in debugging wouldbe greatly appreciated.Regards,Steve Mueller |
|
smueller72
Starting Member
4 Posts |
Posted - 2007-02-07 : 17:20:40
|
and these are the couple follow up posts I've made after doing some experimenting-------------------------------------------------------------------sp_who2 doesn't show any blocking.I've changed the the package to run on a single thread with no changein results.I've also changed the package to utilize a DTSLookup to run the Updatequery(albeit a rather large update query) and I get the same results -i.e. processing just sits on the DTSLookup line. Taking it a stepfurther, I ran the same update query outside of the DTS in QueryAnalyzer and the query was successful. I'm not sure where to go fromhere. As I said, this is crazy - and give it another day and it willprobably start running without a hitch. My problem is that I need thedata updated asap as it feeds some important weekly reports that usersare waiting on. Back to the drawing board - any other suggestionswould be greatly appreciated. |
|
|
smueller72
Starting Member
4 Posts |
Posted - 2007-02-07 : 17:21:20
|
-------------------------------------------------------------------I just ran the sp_who2 proc while the package was running and Inoticed the two lines that seemed odd. The first line(spid 55) isappears to be performing a SELECT and blocking the second line(spid56) which appears to be attempting to perform the update query. Am Ireading this correctly? If so, is this the cause of my issue and, ifso, I'm a bit confused as to why the SELECT statement would be running- it's as if the subsequent SELECT is occuring prior to the Updatequery finishing. If this is my issue, what can be done to resolve?Per my initial post, this process has run fine until recently whenthis began occuring on the first of every month. Any help would beappreciated.55 RUNNABLE SELECT 297 50 2/7/200710:28 DTS Designer 5556 sleeping 55 UPDATE 0 0 2/7/200710:28 DTS Designer 56 |
|
|
smueller72
Starting Member
4 Posts |
Posted - 2007-02-07 : 17:21:46
|
Just a bit more info. I've seperated a chunk of the code into aseperate package not using DDQ. When I run it in debug mode and stepthrough it works fine. However, if I execute the step it hangs.Looking at the sp_who2 results I notice entries similar to the above.However, I do notice that there is a SELECT for every DTSLookup thatis contained in the DTS and I see that the INSERT is blocked by one ofthe SELECT's. So it appears that blocking is my problem but I'm nottoo sure what the cause of this is and, more importantly, how toresolve. Does this sound like it could be my problem? Any reason whythis would occur intermittently(sp)? Any insights on how to resolvewould be appreciated. |
|
|
|
|
|
|
|