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
Tagasiside
https://aka.ms/ContentUserFeedback.
Varsti tulekul: 2024. aasta jooksul tühistame GitHubi probleemide funktsiooni sisutagasiside mehhanismina ja asendame selle uue tagasisidesüsteemiga. Lisateabe saamiseks vtEsita ja vaata tagasisidet