🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #3254

Strange OpenSchema problem

#3254
From: Mike Ruskai
Date: Thu, 07 Nov 2002 01:49
43 lines
2361 bytes
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: <gunaalqrneguyvaxarg.h56nr50.pminews@207.105.83.65>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-04!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!peernews3.colt.net!fr.colt.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,ef8ffcab5a75e805,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-11-06 18:12:02 PST
Newsgroups: borland.public.cppbuilder.database.ado
From: "Mike Ruskai" <spamten.knilhtrae@begonedynnaht.net>
Message-ID: <gunaalqrneguyvaxarg.h56nr50.pminews@207.105.83.65>
Date: Wed, 06 Nov 2002 20:49:53 -0500 (EST)
Reply-To: "Mike Ruskai" <spamten.knilhtrae@begonedynnaht.net>
X-Newsreader: PMINews 2.00.1205 For OS/2
Organization: TLF
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Subject: Strange OpenSchema problem
NNTP-Posting-Host: 65.40.238.148
X-Trace: newsgroups.borland.com 1036634614 65.40.238.148 (6 Nov 2002 18:03:34 -0800)
Lines: 45
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-04!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!peernews3.colt.net!fr.colt.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail