🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: "Index does not exists" error

#493
From: Viatcheslav V. Vassiliev
Date: Fri, 19 Aug 2005 14:31
54 lines
2997 bytes
I do not known OLEDB provider other than MS Jet that supports Seek. AFAIK, 
Interbase/Firebird support only forward-only datasets in their API, so using 
Seek needs cache of rows implemented somewhere. Use client-side cursor and 
Locate if you have not much data, or execute query with WHERE ID = 1234.

//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 + 
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)

"Foo Tze Wan" <twfoo@nospam.com> �������/�������� � �������� ���������: 
news:4305af80@newsgroups.borland.com...
> Hi all,
>
> I am using the following provider : MS OLE DB Provider for ODBC Drivers, 
> to
> connect to InterBase.
>
> I read in a previous posting that indexes are not supported in the 
> provider
> for SQLServer.
>
> This prompted me to find out if the above provider I used supports Indexes
> too. When I set the table to active in the code below, ADOTable_FPUser (a
> TADOTable) returns an exception - "Index does not exists". (See arrow
> pointer in the code below).
>
> What I wanted to do was to search a table (using the Seek function) for a
> specific user ID (1234 in this example). I have double-checked that the
> table name and index name are correct (hopefully).
>
> Code Snippet:
> {
>      ADOConnectionExternal->Connected = true;
>
>      ADOTable_FPUser->Connection = ADOConnectionExternal;
>      ADOTable_FPUser->TableDirect = true;
>      ADOTable_FPUser->TableName = "FPUSER";
>      ADOTable_FPUser->IndexName = "FPUSER_USERIDSTR";
>      ADOTable_FPUser->CursorLocation = clUseServer;
>      ADOTable_FPUser->Active = true; // <--- Error happens here.
>
>      ADODataSet_FPUser->Seek("1234", soAfterEQ);
> }
>
> Does anyone have any idea? Or have I left out anything? Thank you.
>
> Regards,
> Tze Wan
>
> 
Technical Details
Message-ID: <4305ed48$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.spamkiller.net!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <4305af80@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,33bf2af7391abfed
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII
From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <4305af80@newsgroups.borland.com>
Subject: Re: "Index does not exists" error
Date: Fri, 19 Aug 2005 18:31:53 +0400
Lines: 56
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 85.93.138.132
Message-ID: <4305ed48$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1124461896 85.93.138.132 (19 Aug 2005 07:31:36 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.spamkiller.net!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail