File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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