Page 1 of 1

Creating new database

Posted: 12.10.2006, 22:56
by sandeep_c24
Hi

Is it possible to create a new database using Zeos?
I want to create a new Firebird database.

Regards

Sandeep

Posted: 13.10.2006, 07:49
by mdaems
Just have a look around on the forum. I'm sure there is more info. (try keywords create, database and firebird.

eg. http://zeos.firmos.at/viewtopic.php?t=670

Mark

Posted: 14.10.2006, 07:36
by yayaretina
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;