getURL Method (SQLServerDatabaseMetaData)

Retrieves the URL for this database.

public java.lang.String getURL()

Return Value

A String that contains the URL.

Exceptions

SQLServerException

Remarks

This getURL method is specified by the getURL method in the java.sql.DatabaseMetaData interface.

When using the Microsoft SQL Server JDBC Driver with a SQL Server 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.

See Also

Reference

SQLServerDatabaseMetaData Class

Concepts

SQLServerDatabaseMetaData Methods
SQLServerDatabaseMetaData Members