Subject | Re: [IBO] TIB_Connection does not use Local Conection ? |
---|---|
Author | hamacker |
Post date | 2007-12-10T23:30:57Z |
Hi
Server:='localhost';
Protocol:=cpLocal;
in IB_Connection1 does not open connection, raise "unavaliable database".
But in IBO 4.3a runs OK with the same version of Firebird (lastest 1.5)
SuperServer (threads).
if change to use TCP/IP then runs fine.
It s important to me, because cpLocal transferences so fast than use
loopback.
2007/12/10, Helen Borrie <helebor@...>:
Server:='localhost';
Protocol:=cpLocal;
in IB_Connection1 does not open connection, raise "unavaliable database".
But in IBO 4.3a runs OK with the same version of Firebird (lastest 1.5)
SuperServer (threads).
if change to use TCP/IP then runs fine.
It s important to me, because cpLocal transferences so fast than use
loopback.
2007/12/10, Helen Borrie <helebor@...>:
>[Non-text portions of this message have been removed]
> 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
>
>