Hi Experts,
I am using the below code in the SSIS package.
DECLARE @return_value INT DECLARE @sDate as DATETIME DECLARE @eDate as DATETIME SET @eDate = GetDate() exec @return_value = [ServerInstance].Database.dbo.sp_StoredProcedure @UserName = N'User', @Password= N'password', @DateStart= ? , @DateEnd = @eDate
I want the parameter value to be passed to the stored procedure @DateStart.
Before this OLEDB source task I have created Execute SQL Task to set the date to a variable created.
I am trying to pass the set date in the variable to the @DateStart variable in the above Store Procedure. But I get syntax error.
I appreciate if anyone can tell what I am missing.