0

I've started the HSQLDB server with two databases open. i'm using the server protocol for connection i.e. jdbc:hsqldb:hsql://localhost/portdb

portdb is just one database, how can i tweak this URL such that it connects to this and the other db?

I've been referring to hsql user guide but seems nowhere defines this

shrekish
  • 39
  • 4

1 Answers1

0

You cannot open or connect to two databases with the same java.sql.Connection. Use two different connections, each with its URL.

You can have multiple schemas inside a database and access them with a single connection. See http://hsqldb.org/doc/2.0/guide/databaseobjects-chapt.html

fredt
  • 24,044
  • 3
  • 40
  • 61