Firebird 1.5.2 : Error creating embedded DB
Posted: 20.10.2005, 14:13
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
I always get an 'database unavailable' error. Any ideas ?
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;