|
Question : SSIS insert primary key - there must be a way
|
|
I am trying to use ssis to move data from one db to another. All my tables have an integer for the primary key. Since many tables refer to these keys, they can't change. I tried this command
set identity insert on
to allow me to insert primary keys, but I am getting an error "user does not have permission to write to this column"
When I try to use this command, then insert a primary key in my a query window (sql server enterprise manager) it works.
How do you make ssis allow you to insert primary keys? I would think this happens 99% of the time anyone does anything.
|
|
Answer : SSIS insert primary key - there must be a way
|
|
In your OLEDB Destination try to put KEEP IDENTITY TO TRUE as attached image. Helped?
|
|
|
|