SQL ID Key Field
I want to upload data from Excel into a SQL table. The SQL table have an auto ID field which comes up as required when I build my map but I don’t want to upload anything into it – I just want SQL to assign the ID as the map uploads the records. How can I accomplish this?
Cool – thanks for the update.
Assuming that this field is an “Identity” field in SQL, I believe also what you can do is just put in a constant into that field.
While that seems dumb, I believe SC is “Smart” to notice that the field is indeed an Identity column and doesn’t pass a value to it on the call to SQL. From there, the identity just auto populates itself normally.
This is probably why the rolling column works as well, you have the column mapped (to make the required field in the UI happy) but the value isn’t actually being passed to the SQL table.
If you would like to submit an answer or comment, please sign in to the eOne portal.