Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I create a new database with JayBird?

create database JayBird
0
10 Posted

How do I create a new database with JayBird?

0
10

You can use the methods in FBManager in the package org.firebirdsql.management to easily create a new database in your programs. After creation you can connect to the database and use the standard SQL calls to create tables and populate them. This is an example: String DB_SERVER_URL = “localhost”; int DB_SERVER_PORT = 3050; String DB_PATH = “c:/database”; String DB_NAME = “test.gdb”; String DB_USER = “sysdba”; String DB_PASSWORD = “masterkey”; fbManager.setServer(DB_SERVER_URL); fbManager.setPort(DB_SERVER_PORT); fbManager.start(); fbManager.

0

You can use the methods in FBManager in the package org.firebirdsql.management to easily create a new database in your programs. After creation you can connect to the database and use the standard SQL calls to create tables and populate them.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123