Subject Re: [Firebird-Java] Can I execute CREATE DATABASE via JayBird API?
Author KIMURA, Meiji
Hi Roman,

Thank you for your information ! That code works well.
And I found the same code in FAQ. I have to check this FAQ before posting a question...

http://www.ibphoenix.com/main.nfs?a=ibphoenix&l=;FAQS;NAME='JayBird'

--- Roman Rokytskyy <rrokytskyy@...> wrote:

(snip)

> Jaybird has appropriate class org.firebirdsql.management.FBManager which
> does the task:
>
> FBManager fbManager = new FBManager("PURE_JAVA");
>
> fbManager.setServer(DB_SERVER_URL);
> fbManager.setPort(DB_SERVER_PORT);
>
> fbManager.start();
> fbManager.setForceCreate(true);
> fbManager.createDatabase(DATABASE_PATH, DB_USER, DB_PASSWORD);

--
キムラデービー代表 木村明治(KIMURA, Meiji)
http://kimuradb.com
[News] 2007年1月よりDB・開発の低額&定額ミニコンサルやってます!
http://kimuradb.com/miniconsul.html