SQL Server, MySQL bulk operations plugin

Source: Internet
Author: User
Tags bulk insert

Sql server:

1, Entityframework.bulkinsert. Applies only to SQL Server. To achieve the MySQL batch insert, you have to implement some methods, such as registration driver, temporarily not capable.

2, Z.entityframwork.extensions. Applies to multiple-clock databases, including MySQL and SQL Server. However, it is free of charge and only for the month. A free version is released every month, so you can update the version every month to use it for free. Say there's a free version, and then look for it.

Mysql:

1. Generate SQL statement Bulk INSERT, similar to:

INSERT INTO User (Fn, Ln) VALUES (@Fn1, @Ln1), (@Fn2, @Ln2)...

。 Refer to this article

2, Mysqlbulkloader class. Refer to this article, or this article.

Note: With the CSV test, the test found that the number of fields in the CSV file must be the same as the database fields, in the same order as the number. This method is a field that is sequentially inserted into the database.

3, IBID. SQL Server 2. http://bulk-operations.net/

SQL Server, MySQL bulk operations plugin

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.