Skip to content

Latest commit

 

History

History
53 lines (39 loc) · 1.86 KB

File metadata and controls

53 lines (39 loc) · 1.86 KB
title getURL Method (SQLServerDatabaseMetaData) | Microsoft Docs
ms.custom
ms.date 01/19/2017
ms.prod sql
ms.prod_service connectivity
ms.reviewer
ms.technology connectivity
ms.topic conceptual
apiname
SQLServerDatabaseMetaData.getURL
apilocation
sqljdbc.jar
apitype Assembly
ms.assetid fcb66851-db5f-4ae8-b728-d129480b6f42
author David-Engel
ms.author v-daenge

getURL Method (SQLServerDatabaseMetaData)

[!INCLUDEDriver_JDBC_Download]

Retrieves the URL for this database.

Syntax

  
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 [!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.

See Also

SQLServerDatabaseMetaData Methods
SQLServerDatabaseMetaData Members
SQLServerDatabaseMetaData Class