How can I execute 1000s of INSERT queries using Enterprise Library DAAB? That is to say how can I insert lots of rows into a table using DAAB all at once efficiently? And without using a for-loop. Thanks.
Asked
Active
Viewed 2,154 times
0
-
I updated my answer. You can use ODP.NET. – William Xifaras Jun 23 '16 at 14:29
1 Answers
0
Unfortunately, I'm not sure you can do that using the Enterprise Library DAAB without extending it. As an alternative you can use SqlBulkCopy.
http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlbulkcopy.aspx
EDIT
The Oracle Data Provider for .NET (ODP.NET) supports this via the Array Binding feature.
http://www.oracle.com/technetwork/issue-archive/2009/09-sep/o59odpnet-085168.html

Community
- 1
- 1

William Xifaras
- 5,212
- 2
- 19
- 21
-
-
I would say the OracleDataAdapter(), but that is now obsolete. – William Xifaras Oct 26 '11 at 20:18