SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


DTS Parallel Processing


DTS Parallel Processing

Author
Message
Leo Peysakhovich
Leo Peysakhovich
Old Hand
Old Hand (324 reputation)Old Hand (324 reputation)Old Hand (324 reputation)Old Hand (324 reputation)Old Hand (324 reputation)Old Hand (324 reputation)Old Hand (324 reputation)Old Hand (324 reputation)

Group: General Forum Members
Points: 324 Visits: 350
Comments posted to this topic are about the content posted at http://www.sqlservercentral.com/columnists/lPey



Miron Berlin
Miron Berlin
SSC-Enthusiastic
SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)

Group: General Forum Members
Points: 186 Visits: 210
I like the idea and am thinking on using it in tasks other then index maintenance.

One thing I would like to abstract away is parallelizing specific task, in this case Execute SQL task. DTS for SQL Server 2000 carries "Execute DTS Package" component, which fits rather well.

Any suggestion implementing this software design pattern.

-- Miron.
Miron Berlin
Miron Berlin
SSC-Enthusiastic
SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)

Group: General Forum Members
Points: 186 Visits: 210
Hi, I tried yesterday similar approach by dropping on the DTS design surface

a. SQL Server connection
b. Two Execute SQL tasks
c. ActiveX script task with
I. on completion workflow constraints pointing from both Execute SQL tasks
II. script that would try to determine the timing when the execution context was passed to ActiveX script

Here is assumption tested:

* DTS constraints connected by logical AND operator ( or so I believe )
* Such a data construct reaches its decision to proceed to next step after all constraints pointing to the same component executed and match constraint declared condition

I ended up turning on profiler and the trace indicated that both ExecuteSQL components were running on the same SPID ( this was happening under the hood, the two queries ran sequentially )

I added the second SQL Connection component on the designer surface, set ExecuteSQL task to point to distinct connection and the issue went away. On with test for OnCompletion constraint timing.
Miron Berlin
Miron Berlin
SSC-Enthusiastic
SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)SSC-Enthusiastic (186 reputation)

Group: General Forum Members
Points: 186 Visits: 210
the constraint assumption was confirmed. Workaround is to place ActiveX script between parallel task and the point where parallel paths join back to "main" thread. From this script one could check completion status for parallel task and decide to either re - run or to proceed to the next step.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search