Click here to Skip to main content
15,908,909 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am trying to push data from sql server table to mysql table using ssis package.

Source :- SQL SERVER
Destination :- MYSQL

so i am using OLEDB source to ODBC destination.

In the destination (MYSQL) i have a identity column .

when i run the package i get the error as "ssis failure inserting into the read only column identity"

Can you please let me know how can i fix this?

What I have tried:

Will identity insert on and off work?
Posted
Updated 15-Oct-19 22:29pm
Comments
Richard MacCutchan 16-Oct-19 4:02am    
"Will identity insert on and off work?"
What happens when you try it?
chints786 16-Oct-19 4:25am    
I will not serve my purpose because i want the identity column to work and generate the identity number.

The readonly property is not an issue because it is set to off:

read_buffer_size 262144
read_only OFF
read_rnd_buffer_size 524288

1 solution

If you don't want to use
SET IDENTITY_INSERT TableName ON
See the second answer here: sql server - Error 0xc0202049: Data Flow Task 1: Failure inserting into the read-only column - Stack Overflow[^]
It could also be that you just can omit the field from the query.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900