BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TADoDataset.Recordset.Datasource

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO)
View previous topic :: View next topic  
Author Message
Neil
Guest





PostPosted: Wed Dec 10, 2003 12:32 pm    Post subject: TADoDataset.Recordset.Datasource Reply with quote



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





Back to top
Viatcheslav V. Vassiliev
Guest





PostPosted: Wed Dec 10, 2003 12:45 pm    Post subject: Re: TADoDataset.Recordset.Datasource Reply with quote



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
([url]http://www.oledbdirect.com)[/url].

//------------------------------------------
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 (AT) ggpsystems (DOT) co.uk> сообщил/сообщила в новостях следующее:
news:3fd71214 (AT) newsgroups (DOT) borland.com...
Quote:
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









Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.