DatabaseName
- Last Updated: September 20, 2021
- 1 minute read
- DataDirect Connectors
- JDBC
- MongoDB 6.1
- Documentation
Purpose
Specifies the name of the database to which you are connecting. This value is used as the default qualifier for unqualified table names in SQL queries.
Valid Values
database_name
where:
database_name
is the name of a valid database.
Important: The value is case-insensitive if you have access privileges to query the list of databases on the server. If you do not have access, the value is case-sensitive.
Notes
If authentication has not been enabled, client applications will have access to all databases on the server. If authentication has been enabled, a client application will only have access to the database specified by the DatabaseName property assuming it has the required permissions. However, an application with clusterAdmin privileges will have access to all databases on the server even when authentication is enabled.
Data Source Methods
public String getDatabaseName()
public void setDatabaseName(String)
Default Value
No default value
Data Type
String