Article View: borland.public.cppbuilder.database.ado
Article #4738Re: Reading back Field Names that use MDSYS.SDO_GEOMETRY data type
From: John McDonald
Date: Tue, 09 Oct 2001 22:51
Date: Tue, 09 Oct 2001 22:51
39 lines
2287 bytes
2287 bytes
Graham, Did you install Oracle's ole db provider from http://technet.oracle.com for use with ADO or are you using a different provider?? John Graham Reeds wrote: > Hello. > > I have a problem retrieving the fieldnames of a table from Oracle8i Spatial > 8.1.6 using Borland Builder 5. The following code reads in 'normal' tables > perfectly, but fails when the table uses the MDSYS.SDO_GEOMETRY data type. > The error isn't Oracle specific, more Borland related, but I was wondering > if anyone had any ideas on why or similar problems? The Find feature on > DEJA doesn't return any other similar problems, so I was wondering if anyone > could give me a helping hand. The error message is 'ROW-00004: Invalid > column datatype.' > > Stepping through with the debugger shows that the FieldCount isn't filled in > and so fails immeadiately. > > The erroneous(?) piece of code: > > ... > ADOTable->Active = false; // turn table off > ADOTable->TableName = TableName; // retrieved previously > ADOTable->Active = true; // turn it back on > for (int i=0; i<ADOTable->FieldCount; i++) // fill the ListBox > > CheckListBoxTFields->Items->Add(ADOTable->Fields->Fields[i]->FieldName); > > Thanks. > > - > > Yours faithfully, Graham Reeds. > grahamr@omnieng.co.uk | http://omnieng.co.uk/
Technical Details
Message-ID:
<3BC37F6C.27A981AF@airtalk.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!logbridge.uoregon.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsReferences:
<3bc2f3f4_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,96caeb4bff8ec055 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2001-10-09 16:08:44 PST Message-ID: <3BC37F6C.27A981AF@airtalk.com> Date: Tue, 09 Oct 2001 15:51:25 -0700 From: John McDonald <mcdonald@airtalk.com> X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.database.ado To: Graham Reeds <grahamr@omnieng.co.uk> Subject: Re: Reading back Field Names that use MDSYS.SDO_GEOMETRY data type References: <3bc2f3f4_1@dnews> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 209.78.255.245 X-Trace: dnews 1002667973 209.78.255.245 (9 Oct 2001 15:52:53 -0700) Lines: 40 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!logbridge.uoregon.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews