![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'm having a problem with a couple of Execute SQL Tasks in my packages, with multiple DELETE statements. If I put a GO statement anywhere, between any of the statements, I get a syntax error. "Deferred prepare could not be completed. Statement(s) could not be prepared. Incorrect syntax near GO" when I click the parameters button. Essentially i'm trying to do: DELETE FROM TABLE1 DELETE FROM TABLE2 WHERE [ID] = ? DELETE FROM TABLE3 WHERE [ID] = ? Passing in 2 parameters, which happen to be the same ID number. I can run this step fine by setting the param, then right clicking the step and choosing execute, but thats not how I want to use it. I'm calling this package from VB, and when this step starts, (Its actually a step to do rollback if there's been an error) the VB hangs, and never returns. If I only have one statement in my Execute SQL Task, all is fine. I've seen similar problems in other posts, but nothing with a suggestion or solution, so i'm stumped. -Doobs |
#3
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |