Results 1 to 8 of 8

Thread: opening a java created database

  1. #1
    Join Date
    Feb 2003
    Posts
    4

    opening a java created database

    Hi all,
    I'm operating on very little knowledge of SQL 7.0. I have a database that was created in java and I'm told it will open with SQL 7.0. What would be the procedures for doing this?

  2. #2
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254
    Does java has its own database?

    mmmmmm... strange.

    "Create database " it is just a statement in many database. u can execute it with many languages.

    Tell me the file extension of the database you are having.

    General rule:

    if it is .mdf it is sql server. if it is .dat it can be anything. if it is .dbf it can dBASE III,IV,V foxpro. If it is mdb it is ms-access.

  3. #3
    Join Date
    Feb 2003
    Posts
    4
    I haven't actually seen the database yet so I'm not sure of the extension. I'm going to check it out today. Could you give me just a generic how to on opening a database in SQL? That would be a huge help.

    Chris

  4. #4
    Join Date
    Nov 2002
    Location
    New Jersey, USA
    Posts
    3,932
    You can use sp_attach_db to attach a properly detached database file. See SQL Books Online for detail.

  5. #5
    Join Date
    Sep 2002
    Posts
    5,938
    Do you know which server the db was created on? You can use sql tool to connect to sql server and query the db.

  6. #6
    Join Date
    Feb 2003
    Posts
    4
    Could I use the enterprise manager to create a new database and point to the appropriate database file and log file?

  7. #7
    Join Date
    Sep 2002
    Posts
    5,938
    If you have data and log files, you can attach them to sql server with sp_attach_db.

  8. #8
    Join Date
    Feb 2003
    Posts
    4
    Great, thanks for your help guys. Much appreciated!!

Posting Permissions

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