![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi there, I have a dts package that first pulls records into a temp table. I also have a Global Variable of type boolean called ContinueProcessing. Once the task runs that populates the temp table I have an Execute Sql Server Task that checks to see if there are records and if there are it should set the Global Variable to true. I then have a workflow activex that if the Global Variable is true, it continues, otherwise there is no reason to run the rest of the tasks so I set Main = DTSStepScriptResult_DontExecuteTask. My problem is I keep getting an error with my code in the Execute Sql server task. If EXISTS (SELECT * from tempFile) BEGIN SET DTSGlobalVariables("ContinueProcessing").Value = True END At this step I get the following error: Deferred Prepare Could Not Be Completed. Statement(s) Could Not Be Prepared. Line 3 Incorrect Syntax Near "(". Is this a syntax error I just can't see or am I taking the wrong approach? Any help would be appreciated. |
#3
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |