I have a Data Flow Task that does this:
- From two different OLE DB Sources, run a SQL Command to select some data
- Merge Join the two DB sources
- Lookup to a different SQL DB Source, check if the data already exists or not
- Based on Lookup Match Output vs. Lookup No Match Output, run INSERT statement with different input parameters.
The problem is, during the INSERT, it's complaining about Column 'a' and Parameter '1':
Cannot convert between unicode and non-unicode string data types.
I looked up this StackFlow suggestion to change the Column 'a' to (DT_WSTR) string. However the column has already been set to that data type.
Column 'a' is actually not grabbing directly from the database, but instead a constant value
SELECT 'abc'+ FORMAT(GETDATE(),'yyyyMMdd') + 'zz208874' AS a
Any idea what I'm doing wrong?