Subject | Re: [Firebird-Java] is CREATE DATABASE supported? |
---|---|
Author | Rodolfo M. Raya |
Post date | 2004-10-07T17:08:54Z |
On Thu, 2004-10-07 at 12:10, Laurent Duperval wrote:
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
> I want to run 'CREATE DATABASE' statements from ant. Does JaybirdHi,
> support this? When i run it, I get this error:
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