This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Create DB2 database   " Watch "Create DB2 database   " New topic
Author

Create DB2 database

soni agg
Greenhorn

Joined: May 22, 2008
Posts: 3
Hi

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
Greenhorn

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

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
 
Similar Threads
java.sql.SQLException: No suitable driver
problem connecting to postgres 8.2.3
Database Connection
error in compling --can anyone help
What is wrong here