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

Getting data for last 2 Weeks on daily run package using remote stored procedure call?

$
0
0

Hi Experts,

I have the below Stored Procedure that I use to pull the data from the remote server instance. 

The requirement is to load data and check for changes for the last 2 Weeks records on a daily basis.

Can anyone please suggest how can I get the code to pick the dates from parameters or a solution in SSIS that lets pick the last two weeks period and run the package everyday.

declare @return_valueintexec@return_value=[ServerInstance].DataBase.User.sp_StoredProcedure@UserName= N'UserName',@Password= N'Password',@DateStart='2015-08-01',@DateEnd='2015-08-10'select'Return Value'=@return_value

Thanks in advance.


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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