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 DB2 database   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 DB2 database   " Watch "Create DB2 database   " New topic

Create DB2 database

soni agg

Joined: May 22, 2008
Posts: 3

I want to create a database in DB2 dynamically through java code and jdbc type 4 driver for DB2. I used the following code:

But the output shows following exception:

Bhaskar GR

Joined: Jun 13, 2008
Posts: 28
It is problem in Prepared statement
soni agg

Joined: May 22, 2008
Posts: 3
can you tell what problem can you find in my prepared statement as you said ?
I agree. Here's the link:
subject: Create DB2 database
Similar Threads
problem connecting to postgres 8.2.3
Database Connection
error in compling --can anyone help
java.sql.SQLException: No suitable driver
What is wrong here