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 

Help! LoadParamsFromIniFile(MyInIFile) does not set the Driv

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





PostPosted: Thu Apr 12, 2007 7:16 am    Post subject: Help! LoadParamsFromIniFile(MyInIFile) does not set the Driv Reply with quote



Hello,

D2007 - dbExpress - MSSQL

I am using named connections with a custom ini file and at runtime I set the
TSQLConnection.ConnectionName and then call
LoadParamsFromIniFile(MyIniFile). This should automatically set the driver
name with the params are loaded, however, when tracing through the
SqlExp.pas the DriverName does not even get set from the Params after they
are loaded.

function SetDriverName never gets called so the following never get loaded
either:

FVendorLib := Trim(GetProfileString(FDriverName, VENDORLIB_KEY,
DriverRegistryFile));
FLibraryName := Trim(GetProfileString(FDriverName, DLLLIB_KEY,
DriverRegistryFile));
FGetDriverFunc := Trim(GetProfileString(FDriverName,
GETDRIVERFUNC_KEY, DriverRegistryFile));


From the Help:
If you are using named connections, the DriverName property is automatically
set when you set the ConnectionName property.


TIA,
- Craig
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.