Creating new database

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

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
sandeep_c24
Expert Boarder
Expert Boarder
Posts: 158
Joined: 06.11.2005, 01:43

Creating new database

Post by sandeep_c24 »

Hi

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

Regards

Sandeep
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post 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
yayaretina
Fresh Boarder
Fresh Boarder
Posts: 9
Joined: 13.10.2006, 17:09

Post 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;
Post Reply