Re: TADoDataset.Recordset.Datasource
From: Viatcheslav V. Vassiliev (support_at_oledbdirect.com)
Date: 12/10/03
- Next message: George Christoforakis: "Re: ADO autInc"
- Previous message: Viatcheslav V. Vassiliev: "Re: Question on cursor location property"
- In reply to: Neil: "TADoDataset.Recordset.Datasource"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 10 Dec 2003 15:45:30 +0300
Recordset.DataSource should implement IDataSource
({7c0ffab3-cd84-11d0-949a-00a0c91110ed}).
You can get OLEDB interfaces
(including IRowset) with ADORecordsetConstruction
({00000283-0000-0010-8000-00AA006D2EA4}) interface (look implementation of
GetProviderNames in ADODB.pas).
To work with OLEDB interfaces without ADO you may try OLEDB Direct
(http://www.oledbdirect.com).
//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi + ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)
"Neil" <firstname@ggpsystems.co.uk> сообщил/сообщила в новостях следующее:
news:3fd71214@newsgroups.borland.com...
> What interfaces does TADODataset.Recordset.Datasource support?
>
> From the msdn literature it looks like it should be an IRowset (as defined
> in oledb.pas) however
>
> Rowset := ADODataset1.Recordset.DataSource as IRowset;
>
> where Rowset is an IRowset returns an Interface not supported error.
>
> In fact iterating through all the GUIDs in OLEDB:
>
> for i := Low(GuidArr) to High(GuidArr) do
> begin
> if Supports(AdoDataset1.Recordset.Datasource, GuidArr[i], Quack) then
> ShowMessage(GUIDToString(GuidArr[i]));
> end;
>
> where Quack is IUnknown
>
> suggests that it doesn't support any of them.
>
> Any ideas where i'm going wrong?
>
> Thanks
>
>
>
>
>
- Next message: George Christoforakis: "Re: ADO autInc"
- Previous message: Viatcheslav V. Vassiliev: "Re: Question on cursor location property"
- In reply to: Neil: "TADoDataset.Recordset.Datasource"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|