Page 1 of 1

Problem with zeos 6.6.1+ delphi 7+firebird 2.1

Posted: 18.06.2008, 01:58
by pmtzg
Hello
I express myself well and I am translating from Spanish to English
I have a problem, use delphi 7 + + 2.1 firebird zeos 6.6.1
this is the code that conectame to use a database:

zc2.Database:='D:\Prueba\NDocto\bdibx.fdb';
zc2.Password:='masterkey';
zc2.User:='SYSDBA';
ZC2.Protocol:='firebird-2.0';
zc2.Connect;

in the directory of my application I have files embedded:
fbclient.dll fbclient20.dll, ICU *.* firebird.msg ... etc.

if it started with my application server firebird I have no problem
connects but if I put the server marks the following error

SQL Error: unavailable database Error Code: -904

and I have already copied the files embedded in
system, and in system32 truth and nothing I have no idea already made many tests and nothing
someone you could help me?

Posted: 18.06.2008, 16:28
by gto
Hello pmtzg!

Your error is probably caused by the way firebird 2 connects to databases.

Try setting the server property of TZConnection to 127.0.0.1 (in case of the server is you own machine).

It should work :)

Concerning the DLLs, is better you place them only at the folder of your application. If Zeos can't find them, it will fire an error telling about it ;)


Y usted debe ser capaz de traducir este mensaje al español usando el google traductor. Como soy brasileño, puedo entender un poco de español :)

Posted: 18.06.2008, 17:00
by pmtzg
gracias gto
pero ya hice la prueba que me comentas

zc2.HostName := '127.0.0.1';
y nada no se conecta

te comento lo que necesito es como hechar andar servidor embedded
y no me fucniona

Posted: 18.06.2008, 18:07
by gto
¡Ah! Por el Firebird Embedded, elimina esa opción HostName.

Prueba cambiar el nombre de la DLL original de firebird embedded (ñ de firebird normal) para firebirdd.dll Y eleger el protocolo firebirdd-2.0 en TZConnection


english

For firebird embedded, remove that option in HostName and try to change the name of DLL for firebirdd.dll and then change the protocol to firebirdd-2.0 at TZConnection. You should use the firebird embedded DLL, nor the normal one.