?
Solved

Copy data from one database to another using DataSets

Posted on 2008-10-02
5
Medium Priority
?
917 Views
Last Modified: 2012-05-05
I am looking for the most efficient and easy way to copy data from a MS SQL Server database into a mySQL database.

I am using VB.NET (VS 2008) and currently attempting it using DataSets, DataAdapters and Connection objects for the right type of database, but I'm getting a bit stuck.

Just to throw one more spanner in the works, the column and table names are different in both databases so I'll need to do some kind of mapping I guess.

Could someone point me towards or indicate a sample of doing this?
0
Comment
Question by:JedNebula
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 53

Expert Comment

by:Dhaest
ID: 22622741
ADO.NET Generic Copy Table Data Function
http://www.codeproject.com/KB/database/GenericCopyTableDataFcn.aspx


Moving data between MySQL and SQL Server (no code, just addressing some issues)
http://searchsqlserver.techtarget.com/tip/0,289483,sid87_gci1196733,00.html#
0
 
LVL 1

Author Comment

by:JedNebula
ID: 22624268
Thanks for the reply.

Do you have any solution for the non-matcing field names?
0
 
LVL 53

Expert Comment

by:Dhaest
ID: 22647429
>> non-matcing field names

I don't think that there is a proper solution. You'll need to configure the right mappings
0
 
LVL 1

Author Comment

by:JedNebula
ID: 22648536
Yes, but that's the bit I'm not sure how to do.
0
 
LVL 1

Accepted Solution

by:
JedNebula earned 0 total points
ID: 22738735
I wrote my own class to deal with it in the end.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
Ready to get certified? Check out some courses that help you prepare for third-party exams.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question