I have a table that i want to copy to another table using SqlBulkCopy, but in my destination table i have an ID. So like this:
Source table
variable1, variable2, variable3, variable4
Destination table
ID, variable1, variable2, variable3, variable4
How can i make make sure that sqlbulkcopy starts at index 1 in my destination table? The only work around i've found is that adding ID as the last variable, like this:
Destination table(2)
variable1, variable2, variable3, variable4, ID
EDIT As seen in my answer to Christos, ID is already set as IDENTITY(1,1).