Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 1.71 KB

File metadata and controls

44 lines (34 loc) · 1.71 KB
title getURL Method (SQLServerDataSource) | 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
SQLServerDataSource.getURL
apilocation
sqljdbc.jar
apitype Assembly
ms.assetid dd0d5d2c-91fe-4b0f-a162-69d898ba176e
author David-Engel
ms.author v-daenge

getURL Method (SQLServerDataSource)

[!INCLUDEDriver_JDBC_Download]

Returns the URL that is used to connect to the data source.

Syntax

  
public java.lang.String getURL()  

Return Value

A String that contains the URL.

Remarks

For security reasons, you should not include the password in the URL that is supplied to the setURL method. The reason for this is that third-party Java Application Servers will very often display the value set for the URL property in their data source configuration user interface. Instead, use the setPassword method to set the password value. Java Application Servers will not display a password that is set in their data source in the configuration user interface.

Note

If the setURL method is not called before calling the getURL method, getURL returns the default value of "jdbc:sqlserver://".

See Also

SQLServerDataSource Members
SQLServerDataSource Class