Solved

Moving info from Access to MySql with C#

Posted on 2003-10-29
4
240 Views
Last Modified: 2010-04-16
I am interested in moving certain tables from Access to MySql with C#.  I just got the SDK off the net and am very new with this.  Ideally, the information would be grabbed on an hourly basis while the access program is in use.  Any ideas/help would be greatly appreciated.
0
Comment
Question by:elbarro
[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
4 Comments
 
LVL 2

Assisted Solution

by:doryllis
doryllis earned 83 total points
ID: 9646017
You could try running through ODBC to connect to both systems and then just use SQL commands/datasets within the program to transfer the data.

This isn't the ideal situation but it is very flexible and I have used it somewhat successfully. If you ever move from access, or the file location changes you just point your ODBC connection to the new location. (No recompile required)

Are you looking to move the whole table or just the updated/changed records?
0
 
LVL 9

Accepted Solution

by:
msdixon earned 83 total points
ID: 9646332
here's a data provider for mysql. i've used it in development, but not in a production environment so i don't know how it'll hold up.
http://www.mysql.com/portal/software/item-282.html
0
 
LVL 11

Assisted Solution

by:Agarici
Agarici earned 84 total points
ID: 9650842
try loading the table you want to move in a DataSet through a (Ole/sql)DataAdapter bound to the access db and then, save that dataset through another dataadapter, bound to sql database

you can load tables into dataset using the 'fill' function of the dataadapter and save the dataset back in the database using 'update' fnc.
0
 

Author Comment

by:elbarro
ID: 9652066
doryllis, I would probabally just move the changed records.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the adminiā€¦

739 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