Subject Re: [IBO] TIB_Connection does not use Local Conection ?
Author Helen Borrie
At 02:18 AM 11/12/2007, you wrote:
>Hi everybody.
>
>I migrate from IBO 4.3a to 4.8.7, and now my TIB_Connection does open
>if Local Conection is selected.

Does open? or does NOT open?


>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 ?

No. "Localhost" is the TCP/IP local loopback server. It needs cpTCP_IP protocol and cannot work with cpLocal.

The "empty server" setting (IPServer) uses cpLocal, but it is available only for the Superserver model of Firebird. Have you upgraded Firebird too? If you are running Classic, you must use a network access.

Helen