Home      Functions     Common Solutions      Contact     






MDX Functions:
 
MDX Functions

 
Common Solutions

Common Solutions
 
Resource Links

MDX Books
MDX Related Software
MDX Related Blogs
 
Other Links

Contact Us
 
Microsoft SQL Server Analysis Services Function Page
Function Name: UserName
Category: String
Description: The UserName function returns the domain and username for the current connection.
Syntax: USERNAME()
Technet Link: MDX UserName Function




The following query returns the domain\username for the current connection.
 
WITH
      MEMBER [Measures].[User] AS
      USERNAME()
SELECT
      {[Measures].[User]} ON COLUMNS
     
FROM
      [Adventure Works]
 
 

 
 

 
Copyright 2008 by MDXpert.com.
 
Terms of Use                              Privacy Statement
 
Site Powered By - WinHost.Com