SQL Server/T-SQL/System/SUSER SNAME
Версия от 13:46, 26 мая 2010; (обсуждение)
select SUSER_SNAME()
4> SELECT GETDATE(), USER_NAME(), SUSER_SNAME(),
5> USER_NAME(), USER_NAME()
6> GO
----------------------- -------------------------------------------------------------------------------------------------------------------------------- -----------------------------------------------
--------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------------------------
---------- --------------------------------------------------------------------------------------------------------------------------------
2008-08-17 13:20:57.703 dbo J\Administrator
dbo
dbo
(1 rows affected)
1>