Database Connection URL Attributes,
Page 7 of 13


[top]
[prev]
[next]
Documentation Top
Global Index
Reference Manual
TOC Index
Grammar index
Developer's Guide
TOC Index
Tuning Cloudscape
TOC Index

databaseName=nameofDatabase

Function

Specifies a database name for a connection; it can be used instead of specifying the database name in after the subprotocol.

For example, these URL (and Properties object) combinations are equivalent:

  • jdbc:cloudscape:toursDB
  • jdbc:cloudscape:;databaseName=toursDB
  • jdbc:cloudscape:
    (with a property databaseName and its value set to toursDB in the Properties object passed into a connection request)

If the database name is specified both in the URL (as a subname) and as an attribute, the database name set as the subname has priority. For example, the following database connection URL connects to toursDB:

jdbc:cloudscape:toursDB;databaseName=flightsDB

Allowing the database name to be set as an attribute allows the getPropertyInfo method to return a list of choices for the database name based on the set of databases known to Cloudscape. For more information, see java.sql.Driver.getPropertyInfo.

Combining with Other Attributes

You can combine this attribute with all other attributes.

Example

jdbc:cloudscape:;databaseName=newDB
[top]
[prev]
[next]


Cloudscape Version 3.0
For technical support, go to: www.cloudscape.com and click Support.
Copyright © 1998 and 1999 Cloudscape, Inc. All rights reserved.