Subject | RE: [ib-support] CreateDatabase method of TIBDatabase |
---|---|
Author | John Trevor |
Post date | 2001-11-27T21:32:26Z |
Omar,
This has worked for me (I used CBuilder).
database = new TIBDatabase(AOwner);
database->DatabaseName = "XYZ.GDB";
database->LoginPrompt = false;
database->Params->Add("USER \"SYSDBA\"");
database->Params->Add("PASSWORD \"masterkey\");
database->Params->Add("PAGE_SIZE=4096");
database->CreateDatabase();
John.
-----Original Message-----
I need a help with the CreateDatabase method of TIBDatabase. It doesn't work
giving me an error about the user name and password not being defined,which
is not the case. I'm doing with a local server, and set all the Params and
the databaseName property too. I use IB 6 on win2000.
Thanks for your help
Omar
This has worked for me (I used CBuilder).
database = new TIBDatabase(AOwner);
database->DatabaseName = "XYZ.GDB";
database->LoginPrompt = false;
database->Params->Add("USER \"SYSDBA\"");
database->Params->Add("PASSWORD \"masterkey\");
database->Params->Add("PAGE_SIZE=4096");
database->CreateDatabase();
John.
-----Original Message-----
I need a help with the CreateDatabase method of TIBDatabase. It doesn't work
giving me an error about the user name and password not being defined,which
is not the case. I'm doing with a local server, and set all the Params and
the databaseName property too. I use IB 6 on win2000.
Thanks for your help
Omar