Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 1.19 KB

File metadata and controls

37 lines (28 loc) · 1.19 KB
title getUser Method (SQLServerDataSource)
description getUser Method (SQLServerDataSource)
author dlevy-msft-sql
ms.author dlevy
ms.reviewer davidengel, machavan, sunilbs
ms.date 01/19/2017
ms.service sql
ms.subservice connectivity
ms.topic reference
apilocation sqljdbc.jar
apiname SQLServerDataSource.getUser
apitype Assembly

getUser Method (SQLServerDataSource)

[!INCLUDEDriver_JDBC_Download]

Returns the user name that is used to connect the data source.

Syntax

  
public java.lang.String getUser()  

Return Value

A String that contains the user name.

Remarks

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.

See Also

SQLServerDataSource Members
SQLServerDataSource Class