Subject Re: [Firebird-Java] is CREATE DATABASE supported?
Author Rodolfo M. Raya
On Thu, 2004-10-07 at 12:10, Laurent Duperval wrote:
> I want to run 'CREATE DATABASE' statements from ant. Does Jaybird
> support this? When i run it, I get this error:

Hi,

You can also create a database using Java:

FBManager fbManager = new org.firebirdsql.management.FBManager();
fbManager.setServer(dbserver);
fbManager.setPort(dbport);
fbManager.start();
fbManager.createDatabase(dbname, dbuser, dbpassword);
fbManager.stop();

Once the database is created, you can establish a connection in the
usual way and create your tables using standard SQL statements.

Hope this helps,
Rodolfo
--
Rodolfo M. Raya <rmraya@...>
Maxprograms