HOW DO I DISABLE AN IDENTITY COLUMN WHEN USING SQLLOADER?
Posted: Fri 09 Aug 2019 15:51
We are migrating from Oracle to SQL Server.
For previous projects we have used the OracleLoader to populate tables in Oracle. The OracleLoader has an Options property that allows me to specify things such as KeepPrimaryKeys, DisableTriggers, etc.
The SqlLoader has no such property. Given that the primary key columns of our SQL Server tables are defined as Identity columns, how can I disable the auto-increment feature of the column to allow the original primary key values to be assigned?
I have tried using but it had no effect. After writing the data to the table with the SqlLoader, all rows had new primary key values.
For previous projects we have used the OracleLoader to populate tables in Oracle. The OracleLoader has an Options property that allows me to specify things such as KeepPrimaryKeys, DisableTriggers, etc.
The SqlLoader has no such property. Given that the primary key columns of our SQL Server tables are defined as Identity columns, how can I disable the auto-increment feature of the column to allow the original primary key values to be assigned?
I have tried using
Code: Select all
set identity_insert <my_table> off