SqlFunctions.CurrentUser Method

Definition

Returns the name of the current user.

[System.Data.Entity.DbFunction("SqlServer", "CURRENT_USER")]
public static string CurrentUser ();
static member CurrentUser : unit -> string
Public Shared Function CurrentUser () As String

Returns

The name of the current user.

Attributes

Applies to