I am trying to update a field in a table with data from another table based on a shared key. If it were in direct SQL, it would be something like:
Update EHSIT set e.IDMSObjID = s.IDMSObjID from EHSIT e, EHSIDMS s where e.SITENUM = s.SITE_CODE
However, the two tables are not in the same database, so I am trying to use SSIS to upgrade. Oh, and sitenum / site_code are varchar in one and nvarchar in the other, so I will have to do the data conversion to fit each other.
How to do it?
I have a data flow object whose source is EHSIDMS and the destination is EHSIT. I have data conversion to convert unicode to non-unicode. But how do I update based on compliance? I tried with the assignment using the SQL command as the data access mode, but does not seem to have the source table. If I just map the field being updated, how does it limit it based on field matches?
I am going to export the source table to Excel or something like that, and then try to execute input from there, although it seems that all I got is to delete the data conversion step.
Should there be an update data job or something else? Is this one of the tasks of transforming a data stream, and I just donβt understand what it is?
sql-server-2005 ssis
thursdaysgeek
source share