Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 29 JUL 1999 09:18:50AM Richard Cauldwell wrote:

I'm trying to populate an access 97 database with data from OpenInsight using the Query objects and ODBC. Everything works fine for the first 1000 inserts os so but then the inserts fail.

My code runs something like this (simplified) :-

hXO=XOInstance(setup connection etc)
Begin Loop
  Construct SQL String
  hQry=QtyInstance(hXO)
  QryMethod(hQry, QRY_EXECUTE$, SQLString)
  XOMethod(hXO, ,XO_COMMITTRAN$)
  QryMethod(hQry, QRY_DESTROY$)
End Loop
XOMethod(hXO,XO_DESTROY$)

I have tried destroying and re-creating the Connection handle within the loop (say every 100 inserts or so). This improves things to the point where I can do 4 or 5 thousand inserts before they begin failing.

Can anyone help ?


At 29 JUL 1999 12:32PM Stephen Revelation wrote:

Richard,

I've noticed that MSAccess can be sort of limiting when it comes to ODBC connectivity. A customer in the past had a data limitation while warehousing data to MSAccess. The solution to get all of the data to commit, (this was while creating and populating the tables) was to increase the max. buffer size in the ODBC System DSN configuration options.

Perhaps a combination of boosting the max. buffer size and destroying and recreating the connction handle will work for you.

-Stephen Revelation

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/b7966da325e59842852567bd004922a8.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1