Page 1 of 1

Firebird 1.5.2 : Error creating embedded DB

Posted: 20.10.2005, 14:13
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 ?

Posted: 02.05.2006, 11:38
by aebi
Hello,

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

Hope it helps !