SSIS: "Failure Inserting Into The Read-only Column "
Solution 1:
Additionally you could just select Keep Identity
checkbox in OLEDB Destination Editor, if your column is IDENTITY
Solution 2:
It's not an ideal solution but I found a workaround to my problem. Since SSIS was complaining about inserting into my view I created a table with the exact same structure as my view. Then, in an INSTEAD OF trigger on that table, I merely insert the information destined for the table into the view. This adds one more step into the import process but is not a big deal.
Solution 3:
Why is the column "read only"? Could you post schema for the view and the underlying table(s)? Is the column IDENTITY
? Is there a WITH CHECK OPTION
on the view? Is it a derived (calculated) column?
UPDATE:
I see now, a bit unusual application of a view, maybe a stored procedure would have been more appropriate choice -- a stored procedure in the DB and an OLEDB Command in SSIS.
Your final solution with a table as a destination is actually faster, providing that you do not use trigger, but use bulk-insert from the staging table to "final" tables.
Post a Comment for "SSIS: "Failure Inserting Into The Read-only Column""