How can I make OLEDB BulkCopy to insert voluminous records?

I used SqlBulkCopy to insert bulk records into a database. Now I want to change it as Oledb Connections. Therefore, I need to change my large copy.

How can i do the same in oledb?

SqlBulkcopy obj = new SqlBulkcopy("TableName");
+3
source share
2 answers

SqlBulkCopyuses a special database function that does not have a common analogue of OLEDB. Individual providers may have something similar, but you will have to use a vendor-specific option (or find a library that already wraps this, if any).

In short: as far as I know, you cannot.

+3
source

The SqlBulkCopy class is intended only for working with a SQL Server database and works with SQlClient.

Oledb

+2

Source: https://habr.com/ru/post/1765238/


All Articles