Firebird 2.0 Errors

Forum related to version 6.5.1 (alpha) and 6.6.x (beta) of ZeosLib's DBOs

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
sandeep_c24
Expert Boarder
Expert Boarder
Posts: 158
Joined: 06.11.2005, 01:43

Firebird 2.0 Errors

Post by sandeep_c24 »

Hi

I have an application using Zeos and it works fine with FB1.5, but doesn't work at all with FB2.0.1.

I have "CreateNewDataBase=..." in TZConnection's Properties property and I get following exception when I try to connect.

Project TestApp.exe raised exception class EZSQLException with message 'SQL Error: unavailable database. Error Code: -904. Unsuccessful execution caused by an unavailable resource.'.

The above works fine with FB1.5.

Regards

Sandeep
gto
Zeos Dev Team
Zeos Dev Team
Posts: 278
Joined: 11.11.2005, 18:35
Location: Porto Alegre / Brasil

Post by gto »

It's the connection property localhost
With firebird 2, apparently, you cannot create a local connection. So, fill the localhost parameter with your network IP or 127.0.0.1 (loop back) may resolve your problem.
Use the FU!!!!!IN Google !

gto's Zeos Quick Start Guide

Te Amo Taís!
sandeep_c24
Expert Boarder
Expert Boarder
Posts: 158
Joined: 06.11.2005, 01:43

Post by sandeep_c24 »

That didn't work. Is there anything else I should try?

Regards

Sandeep
firstrose
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: 13.06.2007, 09:56

Post by firstrose »

Use absolute pathes for your database.

None business of local connection.I do use localhost and it works well on Firebird 2.0.1
Bottleneck
Fresh Boarder
Fresh Boarder
Posts: 6
Joined: 09.08.2006, 09:48

Post by Bottleneck »

Hello everybody

to create a new Database try this code.
Put Create string into connection properties. Works fine with Firebird.


ZConnection1.Database := 'd:\db1.fdb';
ZConnection1.Protocol := 'firebird-1.5';
ZConnection1.Properties.Add ('CreateNewDatabase=CREATE DATABASE ' +
QuotedStr ('d:\db1.fdb') + ' USER ' +
QuotedStr ('sysdba') + ' PASSWORD ' + QuotedStr ('masterkey') +
' PAGE_SIZE 4096 DEFAULT CHARACTER SET ISO8859_1');
ZConnection1.Connect;



Regards
Peter
Post Reply