Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2002
    Location
    India
    Posts
    1

    Question Unanswered: 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

  2. #2
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •