Article View: borland.public.cppbuilder.database.ado
Article #2093Re: New problem with ADO & Access
From: Ted Byers
Date: Tue, 04 Nov 2003 13:38
Date: Tue, 04 Nov 2003 13:38
34 lines
2592 bytes
2592 bytes
"Vladimir Afanasyev" <avv@systema.kiev.ua> wrote in message news:3fa77c01$1@newsgroups.borland.com... > > Hi Ted, > Do you try my sample from codecentral? > http://codecentral.borland.com/codecentral/ccweb.exe/listing?id=19860 > Vladimir. Hi Vladimir, Yes, I tried it, but I had trouble following some of it because there is no explanation of what is happening, or supposed to happen. Moreover, it is difficult to relate the code to commands the user has sent because you left the names of the controls at the default ones given by BCB rather than giving them names that allow one to know what command has been given just from the function name. I did make a lot of progress by studying your code, but I am guessing I missed something. Do you have any ideas as to why I see this particular problem? I don't understand why the plain insert worked fine but the subsequent query to see if a given value is already in the lookup table should fail. Do I need to be wrapping these queries in transactions, even though I don't need rollback capability, or is there some other way to commit the changes I made before submitting the query? The only way I can see this error arising is if the initial changes I made, creating the tables and indices and inserting data had been in a local temporary copy of the data while the select was done reading directly from the file, and if the data was commited only when the ADO variables went out of scope. But if I am correct here, I am still puzzled because I had thought I was working in immediate mode. Cheers, Ted
Technical Details
Message-ID:
<3fa7ac8a$3@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed.wirehub.nl!news.kweb.on.ca!newsgroups.borland.com!not-for-mailReferences:
<3fa6811e$1@newsgroups.borland.com> <3fa77c01$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,f2b48c4b0b8a3004 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2003-11-04 06:03:07 PST From: "Ted Byers" <r.ted.byers@sympatico.ca> Newsgroups: borland.public.cppbuilder.database.ado References: <3fa6811e$1@newsgroups.borland.com> <3fa77c01$1@newsgroups.borland.com> Subject: Re: New problem with ADO & Access Date: Tue, 4 Nov 2003 08:38:36 -0500 Lines: 37 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 65.95.127.243 Message-ID: <3fa7ac8a$3@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1067953290 65.95.127.243 (4 Nov 2003 05:41:30 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed.wirehub.nl!news.kweb.on.ca!newsgroups.borland.com!not-for-mail