Quantcast
Viewing all articles
Browse latest Browse all 24688

How to set table name to a variable in OLEDB destination task?

Hi,

I am using SSIS 2005.

  1. 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.
  2. 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.
  3. 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.



Viewing all articles
Browse latest Browse all 24688

Trending Articles



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