Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2005
    Posts
    85

    Unanswered: SQL Server test database to SQL Server production database -- Data Migration

    Hi,

    Is there any tool available to migrate the data from the SQL Server test database to SQL Server production database. Data Migration should be based on a condition which can be given as an input for a table by the user. The dependant tables also should be migrated based on the given condition. i.e data subsetting based on the matching conditions.

    Ex : Salary > 2000

    The rows of the table which matches the condition alone need to be migrated for the corresponding table. Also its dependant table's rows should be migrated based on the given condition. Please help me with a tool which can automate this.

    Thanks,
    MiraJ

  2. #2
    Join Date
    Nov 2004
    Location
    on the wrong server
    Posts
    8,835
    Provided Answers: 6
    DTS, BCP, scheduled jobs using cross database inserts queries...
    “If one brings so much courage to this world the world has to kill them or break them, so of course it kills them. The world breaks every one and afterward many are strong at the broken places. But those that will not break it kills. It kills the very good and the very gentle and the very brave impartially. If you are none of these you can be sure it will kill you too but there will be no special hurry.” Earnest Hemingway, A Farewell To Arms.

  3. #3
    Join Date
    Jun 2005
    Posts
    85
    I tried with DTS. It accepts a SELECT query for table migration and it migrates the rows of the table based on the condition. It does not migrates the dependant tables based on the condition specified to the relationship table. I need to migrate all its(the table for which condition is set) dependant tables based on the condition.

    MiraJ

  4. #4
    Join Date
    Nov 2004
    Location
    on the wrong server
    Posts
    8,835
    Provided Answers: 6
    are you completely refreshing the data or just adding to it?

    if you are completely refreshing the development environment disable the constraints in a sql task, truncate the development tables import your data and re enable the constraints

    or just DTS your data in the right order. Child tables first, and then the parents. For this you can use the DTS wizard because it choose the order. You are going to have to build a custom package with precedence constraints on your tasks. Personally I would use BCP or BULK INSERT. By default constraints are not checked using these methods but you are going to have to build staging tables for your exports (for which you need bcp) because you are basing the said export on a query.
    “If one brings so much courage to this world the world has to kill them or break them, so of course it kills them. The world breaks every one and afterward many are strong at the broken places. But those that will not break it kills. It kills the very good and the very gentle and the very brave impartially. If you are none of these you can be sure it will kill you too but there will be no special hurry.” Earnest Hemingway, A Farewell To Arms.

  5. #5
    Join Date
    Jun 2005
    Posts
    85
    Have anyone tried SQL Server database subsetting provided by this tool :

    http://swissql.com/products/datamigr...migration.html

    They claim that, the tool does the below :

    "Criteria based data migration (data subsetting) is supported when migrating from Microsoft SQL Server(i.e SQL Server is the source database). User can set the filter criteria for a table based on which the rows(matching the criteria) will be migrated. If criteria is set for a table, then its dependant tables will also be migrated based on its relationship"

    Please let me know if anyother data subsetting tools available, so that I can compare the quality of migration before we actually proceed with the migration.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •