View Full Version : How create database using JDBC
jamadagnisri
06-28-02, 04:57
| Hi,
How to create a new database within a database connection using JDBC.
The connection is sucessful & after that, I tried to create another databsae, i get a SQLException as ... Cannot use database command in an exlplicit database connection...
regds |
I don't think you can.
There are two ways to connect with jdbc.
What is the url you use?
Try connecting to the server or disconnecting from the database before using the create statement.
vBulletin v3.5.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.