select SYSTEM_USER : SYSTEM_USER « System Functions « SQL Server / T-SQL Tutorial






10> SELECT CURRENT_TIMESTAMP, USER, SYSTEM_USER, CURRENT_USER,
11> SESSION_USER
12> GO



----------------------- -------------------------------------------------------------------------------------------------------------------------------- -----------------------------------------------
--------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------------------------
---------- --------------------------------------------------------------------------------------------------------------------------------
2008-08-17 13:20:57.503 dbo                                                                                                                              J\Administrator
                                                                                  dbo
           dbo

(1 rows affected)








25.59.SYSTEM_USER
25.59.1.Reporting Current User and Login Context
25.59.2.select SYSTEM_USER
25.59.3.Use SYSTEM_USER as a default value