Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > Microsoft SQL Server > SQL Server test database to SQL Server production database -- Data Migration

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-25-06, 05:25
MiraJasmin MiraJasmin is offline
Registered User
 
Join Date: Jun 2005
Posts: 85
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
Reply With Quote
  #2 (permalink)  
Old 02-25-06, 09:00
Thrasymachus Thrasymachus is offline
Button Pushing Slacker
 
Join Date: Nov 2004
Location: Arlington, VA
Posts: 5,895
DTS, BCP, scheduled jobs using cross database inserts queries...
__________________
software development is where smart people go to waste their lives
Reply With Quote
  #3 (permalink)  
Old 02-25-06, 09:50
MiraJasmin MiraJasmin is offline
Registered User
 
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
Reply With Quote
  #4 (permalink)  
Old 02-25-06, 10:35
Thrasymachus Thrasymachus is offline
Button Pushing Slacker
 
Join Date: Nov 2004
Location: Arlington, VA
Posts: 5,895
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.
__________________
software development is where smart people go to waste their lives
Reply With Quote
  #5 (permalink)  
Old 03-10-06, 06:23
MiraJasmin MiraJasmin is offline
Registered User
 
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.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On