UserName

Analysis Services

Analysis Services

UserName

Returns the domain name and user name of the current connection.

Syntax

UserName

Remarks

The returned value has the following format:

domain-name\user-name

Example

If a user is connected to the NYC domain, and the name of the user is alanc, the following example returns NYC\alanc:

UserName