If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > How create database using JDBC

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-28-02, 03:57
jamadagnisri jamadagnisri is offline
Registered User
 
Join Date: Jun 2002
Location: India
Posts: 1
Question How create database using JDBC

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
Reply With Quote
  #2 (permalink)  
Old 08-02-02, 08:07
Roelwe Roelwe is offline
Registered User
 
Join Date: Aug 2002
Location: Belgium
Posts: 534
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.
__________________
rws
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On