Assign global variables -
08-11-2003
, 02:15 PM
Hello all,
How, from a SQL Task, can I assign the value to a global variable.
I mean, in a SQL Task I execute a SQL that returns a date value, I need to
assign this value to a global variable.
I've tried this:
select gv = mydate from my table. Here gv does not have value!!
or
select @gv = mydate from mytable. This generates a error because @gv is
not declared
So how is the correct form???
Thanks |