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
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho