Re: TADoDataset.Recordset.Datasource

From: Viatcheslav V. Vassiliev (support_at_oledbdirect.com)
Date: 12/10/03


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
>
>
>
>
>



Relevant Pages

  • ANN: Oledb Direct 1.60 released
    ... OLE DB is a set of Component Object Model interfaces that provide ... OLEDB Direct Components Suite is a set of VCL-style components that allow ... database access using OLEDB interfaces. ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Differences between OleDB and IBM.Data DB2 connection
    ... one should avoid using OSFA interfaces like ... These add extra layers of interfaces and providers that have to ... translate from the generic interface to the specific provider interface and ... regarding connections to a DB2 database using the OleDB provider < ...
    (microsoft.public.dotnet.framework.adonet)
  • RE: How to create Access database file using OLEDB interface?
    ... "jlilley" wrote: ... > Thanks VN, but I am unfortunately using the COM interface to OLEDB in C++, ... > so I need to stick to the raw OLEDB Com objects and interfaces. ... > Catalog object in VB? ...
    (microsoft.public.data.oledb)
  • RE: How to create Access database file using OLEDB interface?
    ... "ensteitieh" wrote: ... > At the end of article it shows how to create various databases using oledb ... > com interfaces ...
    (microsoft.public.data.oledb)