Management Studio Import with Identity

Muzzamil Sajid 41 Reputation points
2021-12-16T05:52:31.787+00:00

Hello all,

I am not very sure if this question is being posted in the right section. But since i am dealing with Azure SQL Database then i thought it should be fine.

My question is that, when i import a database from another one using the SSMS, it does not import the inbuilt settings of the columns. For example the identity columns. Even if i tick the "Enable identity insert" option. The columns are still imported with no identity setting on them.

Azure SQL Database
SQL Server Other
{count} votes

Accepted answer
  1. Olaf Helper 47,436 Reputation points
    2021-12-16T06:47:07.77+00:00

    it does not import the inbuilt settings of the columns. For example the identity columns

    Then I guess you are using the Import/Export Wizard of SSMS and that's a "nice" tool to copy some data over., but that's all. To migrate a complete database as 1:1 copy it's really the wrong tool.
    Better use Microsoft® Data Migration Assistant v5.5

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. AmeliaGu-MSFT 14,006 Reputation points Microsoft External Staff
    2021-12-16T08:07:46.127+00:00

    Hi MuzzamilSajid-6173,
    In addition, please also try to click EDIT SQL button in the Column Mappings windows, and then add IDENTITY property in the SQL code.
    Foe example:
    158127-image.png

    Best Regards,
    Amelia


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.