Solved

Binding Arrays of Parameters in ADO and ODBC

Posted on 2002-05-15
4
523 Views
Last Modified: 2008-03-17
In ODBC there was possibility to bind array of values to parameter.
In ODBC documentation we read:

When an application uses array of parameters, there are two different ways this can be executed. One way is for the driver to rely on the array-processing capabilities of the back end, in which case the entire statement with the array of parameters is treated as one atomic unit. Oracle is an example of a data source that supports array processing capabilities.

This is what we really need and we always use for Oracle.
But now we deal with ADO and we find no similar features.
We can create Parameter object and assign a value for it. But how array of values can be assigned?
0
Comment
Question by:Kirill_
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 27

Expert Comment

by:kretzschmar
ID: 7011547
what is the purpose for doing such?
0
 

Author Comment

by:Kirill_
ID: 7011649
We need to insert a huge number of rows into a table.
This is the most effective method since only one statement is executed for many rows, this method eliminates most network overheads, internal Oracle overheads and so on.
Native Oracle SQL*Loader tool use this method (using OCI directly of course)

Another way to make bulky inserts was described in ODBC. This is SQLBulkOperations function. It's work not well with available ODBC drivers, but in theory it should work as follows.
First make select and get recordset, then bind array and make SQLBulkOperations with parameter SQL_ADD.
In ADO it's similar(we suppose) to open Recordset, add records to it and then make Update for Recordset. But the results is dreadful: ADO makes insert for every row, moreover it parse this statement every time before execute it.
0
 
LVL 54

Expert Comment

by:nico5038
ID: 7265785

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
 - PAQ'd and pts refunded
Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

Nic;o)
0
 
LVL 5

Accepted Solution

by:
Netminder earned 0 total points
ID: 7296531
Per recommendation, points refunded and question closed.

Netminder
CS Moderator
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Recently I was talking with Tim Sharp, one of my colleagues from our Technical Account Manager team about MongoDB’s scalability. While doing some quick training with some of the Percona team, Tim brought something to my attention...
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question