File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and the fly likes create database using jdbc Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "create database using jdbc" Watch "create database using jdbc" New topic

create database using jdbc

Kiran Kudtarkar

Joined: Mar 31, 2002
Posts: 2
How do i create database using jdbc.
Please help me out with the syntax.
Snigdha Solanki
Ranch Hand

Joined: Sep 07, 2000
Posts: 128
If you want to create tables, you can use executeUpdate method of java.sql.Statement interface.executeUpdate is used to execute an SQL INSERT, UPDATE or DELETE statement.

Snigdha<br />Sun Certified Programmer for the Java™ 2 Platform
Jamie Robertson
Ranch Hand

Joined: Jul 09, 2001
Posts: 1879

Originally posted by Kiran Kudtarkar:
How do i create database using jdbc.
Please help me out with the syntax.

Sorry not an option through jdbc. You can call a VB function via JNI to create an access database or some other native code to create a database.
I agree. Here's the link:
subject: create database using jdbc
Similar Threads
Database Daemon Connection
Creating Databases and Roles from Enterprise Application
Java Demystified - GUI and JDBC
lading data from file into database
how to create database in ms-sql server using java/jdbc