![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
What I want is a way for an Execute SQL Step to get access to a package global variable so that I can do decisions based on it and I cannot figure out how. What I have is a global variable called "LogDebug". I need this to be used in an Execute SQL Task in the following manner: IF DTSGlobalVariables("ExecutionResult").Value <>0 BEGIN INSERT INTO DebugLog() VALUES () END How can I accomplish this? I have tried the following: 1) DECLARE @DebugOn bit SELECT @DebugOn = ? IF @DebugOn <>0 BEGIN INSERT INTO DebugLog() VALUES () END 2) IF ? <>0 BEGIN INSERT INTO DebugLog() VALUES () END I thought that the ? was the way to indicate parameter usage but I must be doing something wrong. Anyone have any ideas? I searched and only found examples of using the "?" character as part of WHERE clauses. Not what I need it to do. |
#3
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |