Python Forum
Moving large amount of data between MySql and Sql Server using Python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Moving large amount of data between MySql and Sql Server using Python
#1
Hi Python developers,

I'm a beginner in the Python programming environment, I started doing online Python courses and I would like to use Python in the data analysis area.
Therefore, I would like to ask you if there is anyone among you who has done a massive (1: 1) data transfer from MySql to Sql Server, using Python.
I would like to know if this can be done using Python. In this way, I could remove the ETL tool which has limitations when it comes to large data transfers from two different DBMS systems.
Therefore, I would like to know if I can do the following steps in Python:

Step 1. Connect to the Mysql database.
Step 2. Access to the table where I want to get my data.
               something like "select * from table"
Step 3. Copy the data to the new table on the Sql Server.
                
I want to make a simple copy (1: 1) without transformations or data aggregation, etc.

I found some information about Python data frames (Pandas or Dask) but the examples used files for manipulating data and inserting them into a database.

In my case, should I use Python SQL Driver - pyodbc?
Are there other Python drivers that are better at extracting data from databases?

Thanks,
Adrian
Reply
#2
Once I've used this Tool to export the data from an MS Access Database to sqlite.
Then you may dump the data with a different program.
But the data could also exported directly to a MySQL Server. I haven't tried it, but the option for this target is available in dbsofts tool.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply
#3
Is this something you have to do once? Because SQL Server Management Studio (which is free MS software) has a nice import option to import data from different kinds of sources.
Reply
#4
@DeaD_EyE, thanks for your info!


@Jeff900, I use the SSIS etl tool and, for small amount of data I am able to import data from MySql(over the network) into Sql Server database. But when I need to catch large amount of data (tables with more 1.5 bilion of rows), the etl tool shows its limits :). From what I know, is a problem with the ADO NET Source connector. Therefore, I'm trying to replace this etl tool only for moving large data from a DBMS to another. Thanks!
Reply
#5
Do you use the "Developer" edition from SQL Server? That edition has some limitations, but I'm not sure what the limitations are exactly. But one is the limitations on the number of records/size in/on the database. And that may cause the limitation problem.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to optimize the speed of processing large JSON files in Python without using too sophia2005 3 964 Aug-02-2025, 03:25 PM
Last Post: snippsat
  Problems writing a large text file in python Vilius 4 2,033 Dec-21-2024, 09:20 AM
Last Post: Pedroski55
  recurring events every specific amount of days jacksfrustration 6 3,159 Jun-27-2024, 01:13 PM
Last Post: deanhystad
  Help with writing monitored data to mysql upon change of one particular variable donottrackmymetadata 3 2,320 Apr-18-2024, 09:55 PM
Last Post: deanhystad
  Mysql and mysql.connector error lostintime 2 2,562 Oct-03-2023, 10:25 PM
Last Post: lostintime
  Moving data from one Excel to another and finding maximum profit azizrasul 7 3,712 Oct-06-2022, 06:13 PM
Last Post: azizrasul
  In SQL Server, mix data types. shiv11 0 1,588 Sep-21-2022, 12:50 PM
Last Post: shiv11
  How to modify python script to append data on file using sql server 2019? ahmedbarbary 1 2,538 Aug-03-2022, 06:03 AM
Last Post: Pedroski55
  SMA (simple moving avg) Not receiving Data (stock prices). gdbengo 2 2,695 Jul-31-2022, 08:20 PM
Last Post: paulyan
  drawing moving circle on line with python barrai 1 5,541 Feb-25-2022, 03:33 PM
Last Post: BashBedlam

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020