UserName (MDX)
Returns the domain name and user name of the current connection.
Syntax
UserName [ ( ) ]
Remarks
The returned value is a string with the following format:
domain-name\user-name
Example
The following example returns the user name of the user that is executing the query.
WITH MEMBER Measures.x AS UserName
SELECT Measures.x ON COLUMNS
FROM [Adventure Works]
See Also
Povratne informacije
https://aka.ms/ContentUserFeedback.
Uskoro: tokom 2024. postepeno ćemo ukidati probleme s uslugom GitHub kao mehanizam povratnih informacija za sadržaj i zamijeniti ga novim sistemom povratnih informacija. Za više informacija, pogledajtePošalјite i prikažite povratne informacije za