I have two different data source from where i am getting the data. The get part query is same for both only the source is different. I am selecting same number of column in both query.
Then I need to load this all data into one destination table.
for example
from first query i am getting following data:
Location CustomerID CustomerName
Usa 1 abc
UK 2 xyz
from second query i am getting following data
Location CustomerID CustomerName
UAE 1 abc
KSA 2 xyz
i need this data into destination table as
Location CustomerID CustomerName
Usa 1 abc
UK 2 xyz
UAE 1 abc
KSA 2 xyz
I tried to do this using Union All component in the ssis package.
First i take two data source component and then Union All component. I mapped union all input1 and union all input2 with output column name.
then after i take ole db destination to load the data into destination table.
after doing the above i run the package and it failed. It is giving error:
[OLE DB Destination [16]] Error: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E21.
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80040E21 Description: "Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.".
I am also enclosing the scree shot of my data flow task.
Any help in this regard will appreciate.
Thanks