Subject | Create new database using embedded engine? |
---|---|
Author | jasperpotts |
Post date | 2004-08-02T10:37:54Z |
How can I create a new database using the embebbed engine and Type 2
JDBC drivers?
I am trying:
FBManager oFbManager = new FBManager();
oFbManager.start();
oFbManager.createDatabase(sDatabasePath,sUser,sPass);
I get:
org.firebirdsql.gds.GDSException: Unable to complete network request
to host "localhost".
at org.firebirdsql.jgds.GDS_Impl.connect(GDS_Impl.java:1663)
at org.firebirdsql.jgds.GDS_Impl.isc_create_database(GDS_Impl.java:205)
at org.firebirdsql.management.FBManager.createDatabase(FBManager.java:370)
So I suspect that it is looking for a network service, how can I tell
it to use embedded?
Many Thanks
Jasper Potts
JDBC drivers?
I am trying:
FBManager oFbManager = new FBManager();
oFbManager.start();
oFbManager.createDatabase(sDatabasePath,sUser,sPass);
I get:
org.firebirdsql.gds.GDSException: Unable to complete network request
to host "localhost".
at org.firebirdsql.jgds.GDS_Impl.connect(GDS_Impl.java:1663)
at org.firebirdsql.jgds.GDS_Impl.isc_create_database(GDS_Impl.java:205)
at org.firebirdsql.management.FBManager.createDatabase(FBManager.java:370)
So I suspect that it is looking for a network service, how can I tell
it to use embedded?
Many Thanks
Jasper Potts