MySql BulkCopy/Insert from DataReader

Posted by Sky Sanders on Stack Overflow See other posts from Stack Overflow or by Sky Sanders
Published on 2010-03-31T08:48:34Z Indexed on 2010/03/31 8:53 UTC
Read the original article Hit count: 456

Filed under:
|
|
|

I am loading a bunch of rows into MySql in C#. In MS Sql I can feed a DataReader to SqlBulkCopy, but the MySqlBulkCopy only presents itself as a bootstrap for a load from file.

So, my current solution is using a prepared command in a transacted loop.

Is there a faster way to accomplish bulk loading of MySql using a DataReader source?

© Stack Overflow or respective owner

Related posts about mysql

Related posts about mysql-connector