2011-09-13

TSQL - Logged in user ID retrieval


-- 1. System defined function.
select
      suser_sname()
;


-- 2. System variable.
select
      SYSTEM_USER
;

No comments:

Post a Comment