| title | getURL Method (SQLServerDatabaseMetaData) |
|---|---|
| description | getURL Method (SQLServerDatabaseMetaData) |
| author | David-Engel |
| ms.author | davidengel |
| ms.date | 01/19/2017 |
| ms.service | sql |
| ms.subservice | connectivity |
| ms.topic | reference |
| apilocation | sqljdbc.jar |
| apiname | SQLServerDatabaseMetaData.getURL |
| apitype | Assembly |
[!INCLUDEDriver_JDBC_Download]
Retrieves the URL for this database.
public java.lang.String getURL()
A String that contains the URL.
This getURL method is specified by the getURL method in the java.sql.DatabaseMetaData interface.
When using the [!INCLUDEjdbcNoVersion] with a [!INCLUDEssNoVersion] database, this method returns a String value that contains the following information:
-
A URL value of "jdbc:sqlserver://"
-
Optional connection properties, such as serverName, instanceName, and portNumber
-
Other connection properties set by the user and all connection properties with non-empty or non-null driver default values except userName, password, and integratedSecurity.
SQLServerDatabaseMetaData Methods
SQLServerDatabaseMetaData Members
SQLServerDatabaseMetaData Class