Solved

Copy data from one database to another using DataSets

Posted on 2008-10-02
5
909 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
  • 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

762 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now