Firebird 1.5.2 : Error creating embedded DB

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

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
cariad
Junior Boarder
Junior Boarder
Posts: 36
Joined: 20.10.2005, 14:07

Firebird 1.5.2 : Error creating embedded DB

Post by cariad »

Hello,

I was pleased to see the forum is back online, and just upgraded to the lastest Sourceforge released CVS.

I'm having a problem with code which worked perfectly with previous release.

I'm trying to create an embedded Firebird database.

I use something like this

Code: Select all

Connection := TZConnection.Create(nil);
    Connection.Database := FileName;
    Connection.User := 'sysdba';
    Connection.Password := 'masterkey';
    Connection.Protocol := 'firebird-1.5';
    Connection.Properties.Add ('CreateNewDatabase=CREATE DATABASE ' +
      QuotedStr (FileName) + ' USER ' +
      QuotedStr ('sysdba') + ' PASSWORD ' + QuotedStr ('masterkey') +
      ' PAGE_SIZE 4096');
    Connection.Connect;
I always get an 'database unavailable' error. Any ideas ?
User avatar
aebi
Fresh Boarder
Fresh Boarder
Posts: 24
Joined: 02.05.2006, 10:26

Post by aebi »

Hello,

maybe a little late : if the hostname is included into the filename it will work.

Hope it helps !
Post Reply