I am trying to call a stored procedure that has 3 input parameters. The stored proc has multiple joins, populates multiple temp tables etc. I need to call this SP from one database and populate another database table in SQL server. I am trying to use OLEDB Source SQL Command
I have also created 3 variables in SSIS package(same variables are in stored proc parameters)
@date string
@productType string
@Flag int32
Exec getDetails
?,?,?
also mapped parameters tab
Parameter-Date variables:user::Date
ProductType-variables:user::ProductType
Flag -variables:user::Flag
First parameter is a date field-get specific date data
second parameter-product type that has 20 different possible values(we want to pull all product types for one date )
third -just a value either 1 or 0.
I also need to map columns from SP to destination table. some columns are unnecessary from sproc and mapping should be done. I am getting error as
Exception-HRESULT:0Xc020204A An OLEDB record is availab.e-Source Microsoft SQL Sever Native Client 11.0 HResult-0*80004005
Error at data flow task(OLEDB Source)-Unable to retrieve column information from the data source. Make sure your target table in database is available. Need help loading data from this stored proc to a destination table.
SELECTstatements in it, or if it selects from a temp table. this might be the issue. Please clarify - Nick.McDermaid