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


Execute SQL Task not firing


Execute SQL Task not firing

Author
Message
AVB
AVB
SSCrazy
SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)

Group: General Forum Members
Points: 2340 Visits: 820
I've got an execute SQL Task that isn't firing at all in my SSIS package (2008). The System File Task runs fine but the Execute SQL Task doesn't even kick off. Precedence Constraint is based on Success for both. I've even tried "On Completion" for the precedence and it still doesn't work. The whole package completes successfully too.

Probably an easy fix but not sure what I'm missing.... Any clues?

Data Flow Task (Flat File-> Bulk Insert ADO.Net connection)
|
|------>System File Task (Runs fine)
|
|------>Execute SQL Task (Doesn't even run)


**Update... okay I have two Successful paths to my execute SQL task. If I remove one of them it fires from the Data Flow task.

Is it not possible to execute a SQL task from two objects in the Control Flow? Here is the flow of everthing:


Execute SQL Task 1
|
|------Conditional Precedence ---> Execute SQL Task 2
|
|------Conditional Precedence ---> Data Flow Task ------ Success----> Execute SQL Task 2
John Mitchell-245523
John Mitchell-245523
SSC-Dedicated
SSC-Dedicated (33K reputation)SSC-Dedicated (33K reputation)SSC-Dedicated (33K reputation)SSC-Dedicated (33K reputation)SSC-Dedicated (33K reputation)SSC-Dedicated (33K reputation)SSC-Dedicated (33K reputation)SSC-Dedicated (33K reputation)

Group: General Forum Members
Points: 33695 Visits: 16649
I can't really visualise your package, but try looking at the properties of your precedence constraint and make sure you've got the correct "Logical AND" or "Logical OR" chosen.

John
Phil Parkin
Phil Parkin
SSC Guru
SSC Guru (50K reputation)SSC Guru (50K reputation)SSC Guru (50K reputation)SSC Guru (50K reputation)SSC Guru (50K reputation)SSC Guru (50K reputation)SSC Guru (50K reputation)SSC Guru (50K reputation)

Group: General Forum Members
Points: 50113 Visits: 21151
I agree with John's diagnosis.

If you have multiple paths to a component and you want that component to fire when only one of those paths has successfully completed, you need to change the default 'logical and' to a 'logical or'.


Help us to help you. For better, quicker and more-focused answers to your questions, consider following the advice in this link.

If the answer to your question can be found with a brief Google search, please perform the search yourself, rather than expecting one of the SSC members to do it for you.

Please surround any code or links you post with the appropriate IFCode formatting tags. It helps readability a lot.
AVB
AVB
SSCrazy
SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)

Group: General Forum Members
Points: 2340 Visits: 820
Phil,

That was it. I had to change the logical operator to "OR". Thank you both for the responses. I've read plenty about SSIS but have little experience with it. I figured it was something basic and I'm glad it was. Thanks again.
Phil Parkin
Phil Parkin
SSC Guru
SSC Guru (50K reputation)SSC Guru (50K reputation)SSC Guru (50K reputation)SSC Guru (50K reputation)SSC Guru (50K reputation)SSC Guru (50K reputation)SSC Guru (50K reputation)SSC Guru (50K reputation)

Group: General Forum Members
Points: 50113 Visits: 21151
No problem, happy to help - thanks for posting back.


Help us to help you. For better, quicker and more-focused answers to your questions, consider following the advice in this link.

If the answer to your question can be found with a brief Google search, please perform the search yourself, rather than expecting one of the SSC members to do it for you.

Please surround any code or links you post with the appropriate IFCode formatting tags. It helps readability a lot.
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