![Confused :?](./images/smilies/icon_confused.gif)
This is a 'select' as in source query, so running it once for every row passing through your job doesn't make much sense unless you're only processing one record or this is for some kind of lookup or you need to pass this to and run another job for every source record. If you are just trying to build source SQL that changes from run to run, you can do as Kim suggested and build it externally and then pass it in as a job parameter. That or just put that SQL in the source SQL stage and pass in your computed 'VARIABLE' field (which again you've computed externally) as the job parameter:
Code: Select all
SELECT A From B where A LIKE '#p_VARIABLE#'
Me, I'm still willing to try and help but without proper and complete requirements from you, that willingness is (unfortunately) rapidly fading...