Article View: borland.public.cppbuilder.database.ado
Article #3257Re: Strange OpenSchema problem
From: Vassiliev V.V.
Date: Thu, 07 Nov 2002 10:43
Date: Thu, 07 Nov 2002 10:43
63 lines
2929 bytes
2929 bytes
What is exact error message (or better error code)? Are Access db secured - if so, may be user has not enough rights to view overall schema. Are Jet SP installed on both computers and are MDAC versions the same? ---------------------------------------------------------------- Regards, Viatcheslav V. Vassiliev http://www.oledbdirect.com The fastest way to access MS SQL Server and MS Jet (MS Access) databases. "Mike Ruskai" <spamten.knilhtrae@begonedynnaht.net> ???????/???????? ? ???????? ?????????: news:gunaalqrneguyvaxarg.h56nr50.pminews@207.105.83.65... > My app uses an OpenSchema() call to get a list of field names when a database > is opened, to verify that the ones required for correct operation exist. The > database is an Access 2000 .mdb file. > > The syntax of the call was this: > > dataConn->OpenSchema(siColumns, EmptyParam, EmptyParam, FieldNames); > > 'FieldNames' is a TADODataSet object. > > The call works consistently on this machine, and on another machine at the > office. > > It does not work on any other machines at the office, or on another machine > here. An exception is thrown with the "blah blah blah not supported by > provider" message. > > Both machines here use Windows 2000, as do most (if not all) machines at the > office. > > Well, after a large amount of searching, I tried setting the restrictions > parameter, like this: > > Variant tvars[3]; > > tvars[0]=Unassigned(); > tvars[1]=Unassigned(); > tvars[2]=cstring; // name of table > > dataConn->OpenSchema(siColumns, VarArrayOf(tvars, 2), EmptyParam, > FieldNames); > > And it works on both machines here now. I haven't tried it on the other > office machines yet. > > So, why does this call work with an empty second parameter on one machine but > not another? > > > -- > - Mike > > Remove 'spambegone.net' and reverse to send e-mail. > >
Technical Details
Message-ID:
<3dca4ac5@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.wirehub.nl!news-hub.cableinet.net!blueyonder!newsfeed1.cidera.com!Cidera!news.uni-x.net!newsgroups.borland.com!not-for-mailReferences:
<gunaalqrneguyvaxarg.h56nr50.pminews@207.105.83.65>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,ef8ffcab5a75e805 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-11-07 03:22:06 PST From: "Vassiliev V.V." <news@vassilievvv.mtu-net.ru> Newsgroups: borland.public.cppbuilder.database.ado References: <gunaalqrneguyvaxarg.h56nr50.pminews@207.105.83.65> Subject: Re: Strange OpenSchema problem Date: Thu, 7 Nov 2002 13:43:57 +0300 Lines: 65 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 212.188.99.108 Message-ID: <3dca4ac5@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1036667589 212.188.99.108 (7 Nov 2002 03:13:09 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.wirehub.nl!news-hub.cableinet.net!blueyonder!newsfeed1.cidera.com!Cidera!news.uni-x.net!newsgroups.borland.com!not-for-mail