🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

"Index does not exists" error

#492
From: Foo Tze Wan
Date: Fri, 19 Aug 2005 10:08
35 lines
2131 bytes
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: <4305af80@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,33bf2af7391abfed,start
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Foo Tze Wan" <twfoo@nospam.com>
From: "Foo Tze Wan" <twfoo@nospam.com>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: "Index does not exists" error
Date: Fri, 19 Aug 2005 18:08:11 +0800
Lines: 37
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
NNTP-Posting-Host: 210.24.189.100
Message-ID: <4305af80@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1124446080 210.24.189.100 (19 Aug 2005 03:08:00 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail