Using sql server 2000, I would like to take my production data and put it in my test database, but I don’t want to overwrite the schema of the test database as there are fields in it that I haven’t added to production yet. Can this be done? I should add that these databases are on different servers.
Share
I think the Import/Export Wizard exists in SQL Server 2000. Wizards are generally irritating, but it only takes a few minutes and you probably already have it installed.
The wizard can be used to create a DTS package that can append all of the data from your production database to the end of tables in another database that already exists. If you have any new columns that are not null and don’t have defaults I’m not sure how well that will be handled though.
You’ll need to provide your production database as the source and the development database as the destination, then make sure to check the ‘append’ option for new data rows.
Edit: I should note, this does work across servers, but I’ve only tried it from one SQL Server instance to another. In theory it works as long as the destination server supports ODBC, but I can’t vouch for that.