I’ve been searching for an answer to this and I can’t find it. I want to set up an SSIS package using Visual Studio 2005 and SQL Server 2005 that will send today’s date (GETDATE())as the parameter to a stored procedure. I can find how to send a parameter, but not how to declare that parameter to be GETDATE(). Is this even possible?
Share
If you need a constantly evaluating time, like GETDATE() then, create a Variable in SSIS called
GetDatewith a Data Type of DateTime. Right click and on the properties window, check the EvaluateAsExpression = True and for the Expression, useGETDATE()Now wire that variable up to the Execute SQL Task.
If you don’t need this very moment, look at using one of the system scoped variables. The
ContainerStartTimeof the Execute SQL Task would probably suffice. My go to value is theStartTimeas that’s when the package started execution but you’ll know best which one is right for you.