Solved

MsSQL -> MySQL Sync

Posted on 2003-11-28
6
1,015 Views
Last Modified: 2008-02-26
Hi

I have to synchronize two tables between a MsSQL and a MySQL database. The MsSQL is the master database and updates/inserts/deletes will only be made here.

I read that DTS might be a good choice for the synchronization.

My problem is that when I try to make a datapump from MsSQL to MySQL the “Enterprise Manager” crashes?? When defining the datapump it’s possible to define the source, but when I try to define the destination (MySQL) I get an error message “HRresult….”. sometimes if I’m lucky I get a chance to choose the destination table, but the Enterprise Manager can only find tablenames – NOT the fields of the table?? The strange thins is that the table names starts with “INFORMATION_SCHEMA”??

I’m using the MyOLEDB3 driver to connect to the MySQL database….. can that be the problem?
0
Comment
Question by:nicolajb
  • 2
  • 2
6 Comments
 
LVL 8

Expert Comment

by:Dishan Fernando
ID: 9864494
Cant you to Export Data(From SqlServer) into .csv File Formats and then Import it into MySql??
0
 

Author Comment

by:nicolajb
ID: 9865271
I coudl o that but I needed the synchrinization to be executed every 30 minutes, and thought that DTS might be the answer.

Now I make the synchronization in a homemade synchronization program, using MySQL drivers for .Net. It works fine but I would still like to now what went wrong with my OLEDB driver.
0
 
LVL 8

Expert Comment

by:Dishan Fernando
ID: 9865296
How do you do synchronization in DTS. Call some SPs??
When Is the Error Hapen. When the DTS Execution time? OR Design time?
0
 

Author Comment

by:nicolajb
ID: 9865342
At design time. I tried to make a datapump to transfer data from a temporary table in the MsSQL to the MySQL database.
0
 

Accepted Solution

by:
fredman1365 earned 500 total points
ID: 10132321
Try creating an ODBC DSN using the OLEDB driver.  Name it MYSQL or something.  That way have the DTS point to the DSN.  Use the DTS Other(ODBC) datasource and choose the DSN of MYSQL.  Be sure to do this on the client PC designing the package as well as on the Server.

0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Error when loading the database 16 66
SQL Server memory sizing - reallocation 16 78
SSRS troubles 4 68
Accessing variables in MySQL query 4 22
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
As technology users and professionals, we’re always learning. Our universal interest in advancing our knowledge of the trade is unmatched by most industries. It’s a curiosity that makes sense, given the climate of change. Within that, there lies a…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

808 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