This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes JDBC and Relational Databases 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 Head First Android this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
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 ?
It is sorta covered in the JavaRanch Style Guide.
subject: Create DB2 database
It's not a secret anymore!