You have not posted any kind of structure so it is impossible to give
you exact statements.
For your UPDATE statements you will need to find the attribute that
identifies the row of data in the staging table. You then join that to
the real table. You check to see if any attribute in which you are
interested has changed and if it has then you update that value.
For the INSERTS. These are where identifiers are in the staging table
and not in the real table
For the DELETEs. This is where the identifier is in the real table and
not the staging table.
These heneral rules should get you going.
Allan
"scott (AT) oax (DOT) com" <scott (AT) oax (DOT) com> wrote
Quote:
OK. So I have setup the transform task to the staging table and added
a new SQL Task upon succesful completion of the import into the stage
table. What is the syntax of the insert/update statement to execute on
completion of the import? I saw an example somewhere out there. Can
you point me to it? |