Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQL Server 2008 R2 Data Export Problems

I am trying to export data from my production DB to my development DB but I am getting this error:

Messages Error 0xc0202049: Data Flow Task 1: Failure inserting into the read-only column "id". (SQL Server Import and Export Wizard)

Is there a way to check which column is that because I have 20 tables that all of them use the column name id or at least get a better error report?

like image 234
Geo Avatar asked Aug 28 '12 15:08

Geo


People also ask

How do I export a database in SQL Server 2008?

Right click on your database and hover on Tasks, you got another dropdown, Select Back Up. You got a pop-up like this. Click on OK button. You got your exported database.

Is SQL Server 2008 R2 still supported?

End support SQL Server 2008 R2 (KB 4456242) - SQL Server | Microsoft Learn. This browser is no longer supported. Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Is SQL Server 2008 R2 compatible with Windows Server 2019?

The only option one should follow if they are using SQL Server 2008/R2, is to upgrade it to the latest version of the SQL Server. SQL Server 2019 allows you to directly upgrade from SQL Server 2008/R2 and keep the database compatibility to the earlier version.

Is SQL Server 2008 R2 compatible with Windows 10?

SQL Server 2008 R2 is not supported on Windows 10 or Windows Server 2016.


1 Answers

Just click on Edit mappings when you choose tables to import from and to. and check on the Enable identity insert checkbox. And you should do that for each choosen table. Then you can complete your import. It was helped me in the same situation.

like image 102
Pavel Nazarov Avatar answered Sep 18 '22 14:09

Pavel Nazarov