Re: Using SEEK on a TADODataSet
From: Viatcheslav V. Vassiliev (support_at_oledbdirect.com)
Date: 08/30/04
- Next message: Viatcheslav V. Vassiliev: "Re: TAdoQuery parameters & empty strings"
- Previous message: Cengis: "TAdoQuery parameters & empty strings"
- In reply to: Brian Wheatley: "Using SEEK on a TADODataSet"
- Next in thread: Brian Wheatley: "Re: Using SEEK on a TADODataSet"
- Reply: Brian Wheatley: "Re: Using SEEK on a TADODataSet"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 30 Aug 2004 19:51:28 +0400
MS SQL Server OLEDB provider does not support indeces (they are used when
preparing queries, of course, but not exposed to user). Only one MS OLEDB
provider supports them - MS Jet (MS Access).
//------------------------------------------
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)
"Brian Wheatley" <brianpw@neo.rr.com> сообщил/сообщила в новостях следующее:
news:413343d1$1@newsgroups.borland.com...
> Hello,
>
> I have an application with a TADOConnection and a TADODataSet on a data
> module form. The TADOConnection is connection to a MS SQL Server database,
> and the TADODataSet's CommandText property is as follows:
>
> SELECT * FROM CAPACITY
>
> The CAPACITY table has a primary key on a MODEL_NO field, and a secondary
> index IX_MODEL on MODEL (not MODEL_NO) and CAPACITY fields.
>
> The documentation for the SEEK method states that the index name must be
> set. However, the index names do not appear in the design environment. I
can
> type in IX_MODEL but the SEEK method still does not work. I also tried
> setting the IndexFields property to MODEL;CAPACITY but that did not work
> either.
>
> The table will open and I can edit the data using a db grid, I just can't
> get the SEEK method to work.
>
> Can anyone tell me exactly what I need to do, step by step, to use the
seek
> method?
>
> Thank you,
> Brian Wheatley
>
>
>
>
- Next message: Viatcheslav V. Vassiliev: "Re: TAdoQuery parameters & empty strings"
- Previous message: Cengis: "TAdoQuery parameters & empty strings"
- In reply to: Brian Wheatley: "Using SEEK on a TADODataSet"
- Next in thread: Brian Wheatley: "Re: Using SEEK on a TADODataSet"
- Reply: Brian Wheatley: "Re: Using SEEK on a TADODataSet"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|