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 

missing drivername

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





PostPosted: Thu Nov 27, 2003 10:07 am    Post subject: missing drivername Reply with quote



Hi,

In designtime the drivername of the tsqlconnection component is set to
interbase, and the connectionname to 'test'.
When the application starts up, I set the propertys again (because I want to
be able to switch between databases)

tsqlconnection:

Connected := False;
DriverName := 'Interbase';
GetDriverFunc := 'getSQLDriverINTERBASE';
LibraryName := 'dbexpint.dll';
VendorLib := 'GDS32.DLL';
ConnectionName := 'test';
LoadParamsFromIniFile(ExtractFilePath(Application.ExeName)+'test.ini');
Connected := true;


In the ini bestand it do the following:

[test]
DriverName=Interbase
BlobSize=-1
CommitRetain=False
Database= C:test.Gdb
ErrorResourceFile=
LocaleCode=0000
Password=masterkey # moet nog versleuteld worden
RoleName=RoleName
ServerCharSet=
SQLDialect=1
Interbase TransIsolation=ReadCommited
User_Name=sysdba
WaitOnLocks=True

On my system it's ok, but my client cannot start the application: 'missing
drivername'

The test.ini file and the dbexpint.dll are installed next to the
application. What can be wrong?
It must be something about dbexpress, because the application starts up all
right when I use the BDE.

Thanks,
Mieke



Back to top
Mieke Janson
Guest





PostPosted: Thu Nov 27, 2003 10:27 am    Post subject: Re: missing drivername Reply with quote



Hi,

I think it has something to do with the dbxdrivers.ini and the dbfile. I
renamed this file on my system, and got the error 'missing drivername'.
Do, I put them in my appdir, but got the same error. Do i have to put the
dbxdrivers.ini file and the dbxconnection.ini the exact directory:
d:program filescommon files borland shareddbexpress? I did not deploy
both files. Only my own .ini and the dbexpint.dll

What do I have to do?

Thanks

Mieke


"Mieke Janson" <ja.ja.ja (AT) planet (DOT) nl> schreef in bericht
news:3fc5cce8$1 (AT) newsgroups (DOT) borland.com...
Quote:
Hi,

In designtime the drivername of the tsqlconnection component is set to
interbase, and the connectionname to 'test'.
When the application starts up, I set the propertys again (because I want
to
be able to switch between databases)

tsqlconnection:

Connected := False;
DriverName := 'Interbase';
GetDriverFunc := 'getSQLDriverINTERBASE';
LibraryName := 'dbexpint.dll';
VendorLib := 'GDS32.DLL';
ConnectionName := 'test';
LoadParamsFromIniFile(ExtractFilePath(Application.ExeName)+'test.ini');
Connected := true;


In the ini bestand it do the following:

[test]
DriverName=Interbase
BlobSize=-1
CommitRetain=False
Database= C:test.Gdb
ErrorResourceFile=
LocaleCode=0000
Password=masterkey # moet nog versleuteld worden
RoleName=RoleName
ServerCharSet=
SQLDialect=1
Interbase TransIsolation=ReadCommited
User_Name=sysdba
WaitOnLocks=True

On my system it's ok, but my client cannot start the application: 'missing
drivername'

The test.ini file and the dbexpint.dll are installed next to the
application. What can be wrong?
It must be something about dbexpress, because the application starts up
all
right when I use the BDE.

Thanks,
Mieke






Back to top
Mieke Janson
Guest





PostPosted: Thu Nov 27, 2003 11:15 am    Post subject: Re: missing drivername Reply with quote



Found it,

I set loadparamsonconnect to true, and us loadparamsfrominifile. That causes
the error. Set sqlconnection.loadparamsonconnect to false and it works,

Mieke

"Mieke Janson" <ja.ja.ja (AT) planet (DOT) nl> schreef in bericht
news:3fc5d1ac$1 (AT) newsgroups (DOT) borland.com...
Quote:
Hi,

I think it has something to do with the dbxdrivers.ini and the dbfile. I
renamed this file on my system, and got the error 'missing drivername'.
Do, I put them in my appdir, but got the same error. Do i have to put the
dbxdrivers.ini file and the dbxconnection.ini the exact directory:
d:program filescommon files borland shareddbexpress? I did not deploy
both files. Only my own .ini and the dbexpint.dll

What do I have to do?

Thanks

Mieke


"Mieke Janson" <ja.ja.ja (AT) planet (DOT) nl> schreef in bericht
news:3fc5cce8$1 (AT) newsgroups (DOT) borland.com...
Hi,

In designtime the drivername of the tsqlconnection component is set to
interbase, and the connectionname to 'test'.
When the application starts up, I set the propertys again (because I
want
to
be able to switch between databases)

tsqlconnection:

Connected := False;
DriverName := 'Interbase';
GetDriverFunc := 'getSQLDriverINTERBASE';
LibraryName := 'dbexpint.dll';
VendorLib := 'GDS32.DLL';
ConnectionName := 'test';

LoadParamsFromIniFile(ExtractFilePath(Application.ExeName)+'test.ini');
Connected := true;


In the ini bestand it do the following:

[test]
DriverName=Interbase
BlobSize=-1
CommitRetain=False
Database= C:test.Gdb
ErrorResourceFile=
LocaleCode=0000
Password=masterkey # moet nog versleuteld worden
RoleName=RoleName
ServerCharSet=
SQLDialect=1
Interbase TransIsolation=ReadCommited
User_Name=sysdba
WaitOnLocks=True

On my system it's ok, but my client cannot start the application:
'missing
drivername'

The test.ini file and the dbexpint.dll are installed next to the
application. What can be wrong?
It must be something about dbexpress, because the application starts up
all
right when I use the BDE.

Thanks,
Mieke








Back to top
Andrey Mogilny
Guest





PostPosted: Mon Dec 01, 2003 10:56 am    Post subject: Re: missing drivername Reply with quote


Hello, Mieke!
You wrote on Thu, 27 Nov 2003 11:07:33 +0100:

MJ> On my system it's ok, but my client cannot start the application:
MJ> 'missing drivername'

It's a dbExpress BUG. In runtime you should manually set drivername.
1. ConnectionName := 'test'
2. DriverName := 'Interbase'

With best regards, Andrey Mogilny


Back to top
Bear
Guest





PostPosted: Wed Dec 31, 2003 1:04 pm    Post subject: Re: missing drivername Reply with quote

Test
"Andrey Mogilny" <mav (AT) gelicon (DOT) biz> wrote

$1 (AT) newsgroups (DOT) borland.com>...
Quote:
Hello, Mieke!
You wrote on Thu, 27 Nov 2003 11:07:33 +0100:

MJ> On my system it's ok, but my client cannot start the application:
MJ> 'missing drivername'

It's a dbExpress BUG. In runtime you should manually set drivername.
1. ConnectionName := 'test'
2. DriverName := 'Interbase'

With best regards, Andrey Mogilny

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress) 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.