| title | getUser Method (SQLServerDataSource) |
|---|---|
| description | getUser Method (SQLServerDataSource) |
| author | David-Engel |
| ms.author | davidengel |
| ms.date | 01/19/2017 |
| ms.service | sql |
| ms.subservice | connectivity |
| ms.topic | reference |
| apilocation | sqljdbc.jar |
| apiname | SQLServerDataSource.getUser |
| apitype | Assembly |
[!INCLUDEDriver_JDBC_Download]
Returns the user name that is used to connect the data source.
public java.lang.String getUser()
A String that contains the user name.
The setUser method sets the user name that will be used when connecting to the instance of [!INCLUDEssNoVersion]. If user name value is not set, the getUser method returns the default value of null.