Exporting data from SQL
i am using DTSWizard to export my data on local database to Database server.
Initially when i tried to first execute the create scripts of tables and then tried to export data then the Id's of all the data is changed and hence the data become garbage for me.
Then i tried to export data directly without using the create script for tables. It works fine and the id's remain the same. But the problem is that the tables having Identity field are not set and i have to manually set the identity constraint of the table.
My database has around 254 tables and its hard to modify every table to set identity constraint
Please help me if there is any way through which i can export data without disturbing the 开发者_开发百科Id's and also the identity property of the table.
Can't you use the Microsoft Migration Assistent to do this ?
Edit: Sorry, missed the point is was server-to-server. I think your best bet is to use SQL Server Management Studio, backup the database and restore it on the other server.
精彩评论