Python Forum
Bulk Insert into SQL Server without a file
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bulk Insert into SQL Server without a file
#1
Hi!

I'm trying to do something similar to this funcion in C#

SqlBulkCopy.WriteToServer(DataTable)

It does a bulk insert into SQL Server from a data table, instead of doing from a .txt or .csv file.

Is there any library that does something similar in Python?
I noticed that pandas has a function that can insert a dataframe, but AFAIK it inserts one row at time, and my data has around 1M rows and 100 columns...

Any suggestions?

Thanks!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  bulk import in arangodb from a dataframe ovidius80 0 3,304 May-03-2020, 12:42 AM
Last Post: ovidius80

Forum Jump:

User Panel Messages

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