Still need help on this one.
I tried an "ActiveX Script" task, but could not get it to work and read
several posts that we should steer away from those types...
I am focusing on "the OLE DB Source" and dont know how to set up User
variable "IsWorkingDay" to the results of the stored procedure.
I have my OLE DB Source sset to "SQL Command" and here is my command text:
_________________________
DECLARE @RC int
DECLARE @Today datetime
set @Today = GetDate()
EXECUTE @RC = [CSPAY].[dbo].[SP_DetermineWorkingDay] @Today
_________________________
All I want to do is set my stinking variable to "Y" or "N" which is being
returned by the Stored Procedure.
Please help fill in the blanks...Thanks
Cam
[quoted text, click to view] "Cam" wrote:
> Thank you Kent!, I appreciate your feedback
>
> Yes, it makes sense, but begin new to Integration Services Projects, I am
> not sure how to do what you suggest.
>
> How exactly do you save the results of a store procedure into a variable?
>
> Cam
>
>
>
> "Kent Tegels" wrote:
>
> > Hello Cam,
> >
> > Remember that a precedence constraint can be evaluated for both or either
> > of state and an expression. You might simply want have an SQL Command that
> > saves your query result into variable, then use that variable in precedence
> > constraint that controls the rest of the package execution.
> >
> > Make sense?
> >
> > Thanks!
> > Kent Tegels
> > DevelopMentor
> >
http://staff.develop.com/ktegels/ > >
> >