hi experts,
I'm using global variables for the first time ever.
I have 1 global var and an input box which stores the user input into the global var. That much works.
Now, in another part of the DTS package, I want to reference the value in an SQL statement... not so easy.
The SELECT stmt is....
FROM dbo.Claims
WHERE DATEDIFF(month,[Proc Date], getdate()) > DTSGlobalVariables("MonthsToKeep").value
It gives an error "function DTSGlobalVariables does not exist" or something similar.
How can I use the gloabl variable value in a Select statement ?
Thanks, John
I'm using global variables for the first time ever.
I have 1 global var and an input box which stores the user input into the global var. That much works.
Now, in another part of the DTS package, I want to reference the value in an SQL statement... not so easy.
The SELECT stmt is....
FROM dbo.Claims
WHERE DATEDIFF(month,[Proc Date], getdate()) > DTSGlobalVariables("MonthsToKeep").value
It gives an error "function DTSGlobalVariables does not exist" or something similar.
How can I use the gloabl variable value in a Select statement ?
Thanks, John