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
Firebird 2.0 Errors
Moderators: gto, cipto_kh, EgonHugeist
-
- Expert Boarder
- Posts: 158
- Joined: 06.11.2005, 01:43
-
- Fresh Boarder
- Posts: 6
- Joined: 09.08.2006, 09:48
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
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