Hi,
I am using SSIS 2005.
- In my execute sql task, I am running a stored proc that creates a table using an input parameter that becomes this table's name (through dynamic sql) and then I set the table name to an output parameter of this store proc.
- then I set the value of my SSIS variable to this output parameter of the stored proc in the above execute sql task parameter mapping.
- Now I have a data flow task, where I want to use this SSIS variable as the destination table name in my oledb destination task, which is not working.
I am getting this error.
[OLE DB Destination [610]] Error: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E37. [OLE DB Destination [610]] Error: Opening a rowset for "<table name (SSIS variable value)>" failed. Check that the object exists in the database. [DTS.Pipeline] Error: "component "OLE DB Destination" (610)" failed validation and returned validation status "VS_ISBROKEN".
I have set the delayvalidation property to true.
I am in doubt now if we can use a variable in place of destination table.
Please provide some inputs.
Regards.
'In Persuit of Happiness' and ..... learning SQL.