This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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.
Don't get me started about those stupid light bulbs.
subject: create database using jdbc
Similar Threads
Creating Databases and Roles from Enterprise Application
Database Daemon Connection
Java Demystified - GUI and JDBC
lading data from file into database
how to create database in ms-sql server using java/jdbc