If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Moving SQL Server data to DB2 on Linux.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-29-10, 08:38
pataylor pataylor is offline
Registered User
 
Join Date: Apr 2004
Posts: 4
Moving SQL Server data to DB2 on Linux.

I am working on a project in which I need to set up a daily process to move data from a SQL Server 2005 database at a remote site to a DB2 V9.1 on Linux database at our home office. The data that will be moved from SQL Server resides in several tables. I do not want to move all of the columns that are defined on each table. The destination tables that will be defined in DB2 will be denormalized and used for reporting. The data in DB2 will be totally refreshed each day.

I realize that there are several ways in which to do this including the use of SSIS and export/import. What I am trying to determine is the most efficient way because the data will be crossing our WAN.

If anyone has gone through this and figured out the best way to do it, please share that process with me.

Thank you for what ever help you can provide.
Reply With Quote
  #2 (permalink)  
Old 07-29-10, 08:50
nvk@vhv nvk@vhv is offline
Registered User
 
Join Date: Jan 2010
Posts: 294
I would use bcp queryout to export the data and use db2 load utility to load the data into DB2 Database. This way you are only transfering the data, you want to load to DB2. Further you have the option to compress the file before the transfer.
Reply With Quote
  #3 (permalink)  
Old 07-29-10, 09:40
pataylor pataylor is offline
Registered User
 
Join Date: Apr 2004
Posts: 4
Thank you for your suggestion.

I'll certainly give it a try to see how it works for us.
Reply With Quote
  #4 (permalink)  
Old 08-02-10, 07:32
pataylor pataylor is offline
Registered User
 
Join Date: Apr 2004
Posts: 4
One last question concerning this issue.

Has anyone used the DB2 Migration Toolkit for this type of a situation or is that tool more suited to a one time migration of data from SQL Server to DB2?

Thanks.
Reply With Quote
  #5 (permalink)  
Old 08-02-10, 09:41
nvk@vhv nvk@vhv is offline
Registered User
 
Join Date: Jan 2010
Posts: 294
Yes,

you could also use it for your purpose. It will generate scripts to export and load the data.
You can use the scripts for your replication tasks.

Cheers
nvk
Reply With Quote
  #6 (permalink)  
Old 08-03-10, 04:43
preciousone0510 preciousone0510 is offline
Registered User
 
Join Date: Aug 2010
Posts: 1
Thanks for the information!! Keep up the good work guys!
Reply With Quote
  #7 (permalink)  
Old 08-03-10, 05:57
pataylor pataylor is offline
Registered User
 
Join Date: Apr 2004
Posts: 4
Thanks for your input!
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

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