Subject | TIB_Connection does not use Local Conection ? |
---|---|
Author | hamacker |
Post date | 2007-12-10T15:18:08Z |
Hi everybody.
I migrate from IBO 4.3a to 4.8.7, and now my TIB_Connection does open
if Local Conection is selected.
I try this example :
with IB_Connection1 do
begin
Connected:=false;
Databasename:='c:\dados\jade\admin1.fdb';
Protocol:=cpLocal;
Server:='localhost'; // or empty
Username:='SYSDBA';
Password:='masterkey';
try
Open;
except
on e:exception do
begin
Application.MessageBox(Pchar(e.message), 'Error :',0);
end;
end;
end;
In previous version of IBO (4.3a) this code runs OK, but fail on IBO
4.8.7 returning the message error "unavaliable database". To
workaround I set protocol to TCP_IP and runs fine.
cpLocal was dropped or code missing ?
I migrate from IBO 4.3a to 4.8.7, and now my TIB_Connection does open
if Local Conection is selected.
I try this example :
with IB_Connection1 do
begin
Connected:=false;
Databasename:='c:\dados\jade\admin1.fdb';
Protocol:=cpLocal;
Server:='localhost'; // or empty
Username:='SYSDBA';
Password:='masterkey';
try
Open;
except
on e:exception do
begin
Application.MessageBox(Pchar(e.message), 'Error :',0);
end;
end;
end;
In previous version of IBO (4.3a) this code runs OK, but fail on IBO
4.8.7 returning the message error "unavaliable database". To
workaround I set protocol to TCP_IP and runs fine.
cpLocal was dropped or code missing ?