Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Parameterized Date in Remote Stored Procedure Call

$
0
0

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.


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>