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 

Paradox db with ADO, without BDE

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





PostPosted: Thu Dec 11, 2003 4:06 pm    Post subject: Paradox db with ADO, without BDE Reply with quote



Hi,

I'm trying to connect to a Paradox db using ADO. In my situation it is
not possible to use BDE.
A search of the newsgroups learned me that it should be possible to
access a Paradox table using ADO. So I made a small program to
experiment with this. But all I'm getting is: 'External table is not
in the expected format'.
The Jet engine has the latest sp (SP8 - msjet40.dll =4.0.8015.0).

This is my source code:
try
outputdebugstring('0');
if ADOConnection1.Connected then
ADOConnection1.Close;
with ADOConnection1 do
begin
outputdebugstring('1');
Provider := 'Microsoft.Jet.OLEDB.4.0';
outputdebugstring('2');
Properties['Data Source'].Value := '.';
outputdebugstring('3');
Properties['Extended Properties'].Value := 'Paradox 5.x';
outputdebugstring('4');
Open;
outputdebugstring('5');
end;
ADOTable1.TableName := 'SCM.db';
outputdebugstring('6');
ADOTable1.Open;
outputdebugstring('7');
except
on E: Exception do
ShowMessage(E.Message);
end;

The last debugstring I see is Nr 6, so opening the table results in
the error.
When I run this program on a computer with BDE installed it works just
fine,
but that is propably because the BDE takes over.

Can anybody help me?

Greetinx,

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