Задайте вопросЗадайте вопрос
 

ОтвеченоHow to move data from one db to another which are not in network

Ответы

  • 30 июня 2009 г. 16:47Barclay HillMSFT, МодераторМедали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     Отвечено
    HVPR,

    If these boxes are not networked you will have trouble doing a comparison.  You could use sneaker net. Back up the database on the DEV server.  Restore copy of back up to a new database name on the QA server.  Run Data Compare comparing the QA Database  (Source) and DEV Restore (Target).  This will generate an update script.  Save script off and run it against the live DEV database.  If the DEV database has no data you could skip the back up and restore and just create an empty version of the database schema to use to compare. This should work if the data is not too large.  If it is very large then you may run into limitations on batch size of script.  If that is the case then I would look into exporting and bulk insterting as Jens suggests.

    Thanks,


    Barclay Hill Program Manager VSTS: DB Team (DataDude, DBPro, Database Edition) Please mark the responses as answer if it resolves your question.

Все ответы

  • 29 июня 2009 г. 6:01Jens K. Suessmeyer -MSFTМедали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     
    If they have no connection to each other you should better consider using bcp to export the data in files and import them using the bcp bulk operation. Data Dude is a perfect tool for data comparisons, but if you can be sure that the data will be wiped out anyway on the dev servers, you should consider doing the initial load with another tool.

    -Jens
    Jens K. Suessmeyer http://blogs.msdn.com/Jenss
  • 29 июня 2009 г. 20:04HVPR Медали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     

    Hi,

    you mean that we can't transfer data from qa to dev using data dude. I am not planning to wipe out data on dev after data transfer hence we are transfering data from qa to dev to have it there for some dev work on data.

    basically I am trying to move some data between two databases with same structure. what is the best option or tool to move data between them.

    Thanks
  • 29 июня 2009 г. 20:15Genevieve OrchardMSFTМедали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     

    Hi HVPR,

    Which version of Visual Studio are you using? If you're using VS 2008 (non-GDR), you can download the power tools here and use the Data Generation Wizard to create a pre-configured data generation plan to accomplish your goal. This data generation plan will be configured with the "sequential databound generator" to pull data from each of the tables in your source database to the corresponding tables in the target database.

    If you're using the GDR version, we have not yet released power tools for it. In that case, you might be able to use data compare to copy the data over. Note that data compare will only compare tables with primary keys.


    -Genevieve Orchard (VSTS Database Edition Test Team)
  • 30 июня 2009 г. 2:10HVPR Медали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     
    Hi,

    Yes we are using visual studio 2008 and I read in documentation that in order to work with sql server 2008 db we have to download VSTS DATABASE EDITION GDR R2 SO I installed gdr. I guess installing power tools we cant work with sq server 2008 databases. please correct me if I am wrong.
  • 30 июня 2009 г. 2:22Genevieve OrchardMSFTМедали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     
    Yes, you need the GDR to work with SQL Server 2008 databases, and the power tools for the GDR aren't available yet.

    Another option is to import the database schema into a GDR database project, create a data generation plan, and manually configure each column to use the Sequential Databound Generator. You will need to configure each column with the connection string to the source database and a select statement to obtain the correct column. (This is essentially what the power tool wizard does.)
    -Genevieve Orchard (VSTS Database Edition Test Team)
  • 30 июня 2009 г. 16:47Barclay HillMSFT, МодераторМедали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     Отвечено
    HVPR,

    If these boxes are not networked you will have trouble doing a comparison.  You could use sneaker net. Back up the database on the DEV server.  Restore copy of back up to a new database name on the QA server.  Run Data Compare comparing the QA Database  (Source) and DEV Restore (Target).  This will generate an update script.  Save script off and run it against the live DEV database.  If the DEV database has no data you could skip the back up and restore and just create an empty version of the database schema to use to compare. This should work if the data is not too large.  If it is very large then you may run into limitations on batch size of script.  If that is the case then I would look into exporting and bulk insterting as Jens suggests.

    Thanks,


    Barclay Hill Program Manager VSTS: DB Team (DataDude, DBPro, Database Edition) Please mark the responses as answer if it resolves your question.