whenever i try to update tables from source to destination tables (sql server to sql server) in ssis i run a stored procedure with the update query. i execute this SP via OLE DB Command. Now for the OLE DB command to run i have to do a Data Conversion from DT_WSTR to DT_STR.
My question is: is it possible to perform update without this data coversion? what is confusing to me is that i am pulling data from sql server and pushing data to sql server. so why is that varchar having different data enconding(DT_WSTR and DT_STR)?
But if i simply do an insert, i.e no update(use the OLE DB Command) i dont have to do any coversion and my SSIS package works fine. Now there is no problem of DT_WSTR and DT_STR but the problme occurs only when i try to run an OLE DB Command. how is ssis now inserting data from nvarchar to varchar?
i am sorry if this is a foolish question. i am quite new to SSIS.
SQL Azure
anddestination
both have same data type ? – praveenOLEDB Command
properly .This seems weird .You can double click the arrow betweenSQL Azure
andLookup
and check themetadata
for the column which is causing this issue – praveenADO.NET
destination so it is implicitly converting from DT_WSTR to DT_STR as mentioned inMicrosoft Connect
. – praveen