Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

setURL Method (SQLServerDataSource)

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

public void setURL(java.lang.String url)


A String that contains the URL.

For security reasons, you should not include the password in the URL 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 Note

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

© 2015 Microsoft