Subject | Re: [IBO] "Unavailable database"? |
---|---|
Author | ra8009 |
Post date | 2005-09-27T03:41:45Z |
> Could you please paste the entire code for the procedure where youdo this,
> including the full handler declaration with arguments?Below is the code that attempts to open the connection and the ini
>
> Helen
file contects. LoginUser and LoginPassword are currently equal to
SYSDBA and masterkey.
With ApptConnection do
begin
Disconnect;
Database := IniFile.readString('MAIN','AppDatabasePath','');
Server := IniFile.readString('MAIN','Server','');
UserName := LoginUser;
Password := LoginPassword;
try
Connect;
Here's the ini file:
[MAIN]
AppDatabasePath = 'C:\customers\customers.fdb'
Server = 'mainserver'