Subject | Re: [Firebird-Java] How to change forced writes settings via JayBird? |
---|---|
Author | Roman Rokytskyy |
Post date | 2009-10-12T20:50:01Z |
> Thanks for the answer and a little sarcasm, Roman :):)
> The last line in the following code throws "GDS Exception. 335544792. CannotLooks like a bug (either in FB or in Jaybird)... The following works for me:
> attach to services manager".
>
> // start embedded Firebird server
> FBManager manager = new FBManager("EMBEDDED");
> manager.start();
>
> MaintenanceManager maintenanceManager = new
> FBMaintenanceManager("EMBEDDED");
> maintenanceManager.setDatabase(getDatabaseFile().getAbsolutePath());
>
> Is there a document which explains when and how to use FBMaintenanceManager?
org.firebirdsql.management.FBMaintenanceManager mm =
new org.firebirdsql.management.FBMaintenanceManager("EMBEDDED");
mm.setDatabase("d:/database/ray_holme_demo.fdb");
mm.setUser("SYSDBA");
mm.setPassword("masterkey");
mm.setForcedWrites(false);