473,503 Members | 1,656 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MSSQL to MYSQL Table Copy over HTTP

56 New Member
Hi all,

I created an application to copy certain tables from a database on MSSQL server to another database on MYSQL server which is on another server (very very very far away). The process works well but it terribly slow. And were only talking text... no images are in the database yet.

I used ADO.Net and .NET ODBC Connection to MYSQL. What I do is select the data from MSSQL tables to a dataset using a source DataAdapter and and then (with the help of command builder) I update the changes using a destination DataAdapter.
I use the CommandBuilder since i don't want create my own update statements (too much of a hassle)

This process needs to run once a day, but still takes ages.

Any ideas on an alternative method?? I've tried all sorts of other ways like Data Transformation Services but this still takes long and causes errors for blob data.

Thanks in advance and I apologise for the long thread but wanted to make things clear.

Lukas
Jan 11 '08 #1
8 2694
kenobewan
4,871 Recognized Expert Specialist
This method is always going to be slow, have you tried ado.net. You can use a remote connection string and copy the data that way. HTH.
Jan 11 '08 #2
pechar
56 New Member
This method is always going to be slow, have you tried ado.net. You can use a remote connection string and copy the data that way. HTH.
Yes I am using ADO.NET as I said earlier in thread and am using a remote connection string. Or do you mean something else?
Jan 11 '08 #3
kenobewan
4,871 Recognized Expert Specialist
My bad, there are three things most likely to influence this process. If your sql query and sql server are not optimized, which you can do something about. The speed of your connection which you cannot.

I believe that you would be better off using a datatable or xml and writing your own sql. Anything remote need to be efficient, more efficient equals faster. However, one of the pitfalls of remoting outside a lan (very far away) is how long the connection has to remain open. In such a case you may be better using a web service. Hope this one is more helpful.
Jan 12 '08 #4
pechar
56 New Member
My bad, there are three things most likely to influence this process. If your sql query and sql server are not optimized, which you can do something about. The speed of your connection which you cannot.

I believe that you would be better off using a datatable or xml and writing your own sql. Anything remote need to be efficient, more efficient equals faster. However, one of the pitfalls of remoting outside a lan (very far away) is how long the connection has to remain open. In such a case you may be better using a web service. Hope this one is more helpful.
Kenobewan thanks for your reply, sorry havent replied but didn't have access to internet this weekend. Could you please elaborate on usage of DataTable , my own sql and/or XML? By how long the connection has to remain open you mean timeouts? Thanks again
Jan 14 '08 #5
kenobewan
4,871 Recognized Expert Specialist
By using a datatable/xml and your own query, I am hoping that you may improve performance over update with dataadapter. The proof would be in performance testing.

While connecting to a db and executing, the connection needs to remain open. This is not a problem in a web farm or over a lan, but becomes a major issue if the server is hosted elsewhere. Unless you can change your server design, then make sure you are only opening to execute and close again.

May even be better to send datatable/xml file through webservice or something like this:
How To Update Server Data Through a Web Service by Using ADO.NET and Visual C# .NET
Jan 14 '08 #6
pechar
56 New Member
Hi all,

This post is similar to my previous post. I need to get data from a remote FoxPro Database to be displayed in a web application. Would you suggest using a web service on the database server to retrieve this data? Amounts of data are rather large and I'm worried about the speed of the webservice.

Or would it be better to copy all the tables to the web application server once a day and use that data. (this would take some time)

Real time data is an issue here so I don't think the second choice is feasible.
Any ideas?

Thanks
Lukas
Jan 14 '08 #7
kenobewan
4,871 Recognized Expert Specialist
So similar I merged it, you don't need to create separate threads on the same topic. Replying will bump them up the queue. Thanks.
Jan 14 '08 #8
pechar
56 New Member
So similar I merged it, you don't need to create separate threads on the same topic. Replying will bump them up the queue. Thanks.
Sorry my bad next time I keep it in the same thread.
Also I'll give it a try as you mentioned.
Thanks again
Jan 14 '08 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

5
12008
by: Alper Adatoz | last post by:
Hi, i have a little problem. i hope u guys give me a clear solution (: db: mssql i just want to put jpeg file to the image field at the mssql db. and after that i want to call it back..
0
3924
by: Mike Chirico | last post by:
Interesting Things to Know about MySQL Mike Chirico (mchirico@users.sourceforge.net) Copyright (GPU Free Documentation License) 2004 Last Updated: Mon Jun 7 10:37:28 EDT 2004 The latest...
14
36956
by: Andre | last post by:
Hello Can anyone help me translate this from access so that it can work in mssql (i need to get next value, but cannot use identity as if row is deleted, another must get new next column number...
1
3514
by: Kenneth P | last post by:
Hi, I'm trying to do some Custom Paging technique with the datagrid object and with the select command in Sql, thus forcing the server to only select those rows from the database that should be...
0
7932
by: m3rajk | last post by:
I've recently become the defacto DBA of two MSSQL databases at work because I am the only one with SQL experience. I have been asked to do some tasks with the databases but this requires and...
0
1297
by: intergroove | last post by:
Help. This has been bugging me for a couple of days now: I am writing a script to regularly transfer data from a MYSQL db to a MSSQL. Being new to MSSQL I'm a bit freaked out about the...
3
2229
bhing
by: bhing | last post by:
Ciao!!.. I am currently working with mysql database now and i am trying to get some fields in the mssql database.table.. I want to automatically add those fields to my mysql database table, or if...
0
1765
by: Gosth in the shell | last post by:
Hi there, i need some help I got a software to backend is MSSQL 2005, but a provider software requires an UPDATE on his table with MySQL 5.0.56a backend, so i made the next: download and...
1
9547
ssnaik84
by: ssnaik84 | last post by:
Hi Guys, Last year I got a chance to work with R&D team, which was working on DB scripts conversion.. Though there is migration tool available, it converts only tables and constraints.. Rest of...
0
7198
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7271
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7319
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6979
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5570
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4998
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3160
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1498
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.