Keep value of autonumber column when importing into Microsoft Access database

后端 未结 3 1902
野趣味
野趣味 2021-01-15 10:02

What I try is to import several tables programmatically from Microsoft SQL Server to Microsoft Access.

Each SQL Server table has an identity column, and the correspo

3条回答
  •  走了就别回头了
    2021-01-15 10:38

    The secret is to temporarily un-assign the autonumber as the primary key. This allows Appending AutoNumber Field to your records without any trouble (just make sure you do not have any duplicates when appending, otherwise when you re-assign the primary key you will get an error).

提交回复
热议问题