Hi
From BOL:
"If the current user is logged in to Microsoft® SQL ServerT using Windows
Authentication, SYSTEM_USER returns the Windows 2000 or Windows NT 4.0 login
identification name, for example, DOMAIN\user_login_name. However, if the
current user is logged in to SQL Server using SQL Server Authentication,
SYSTEM_USER returns the SQL Server login identification name, for example,
sa for a user logged in as sa."
USER only works with SQL Security.
--
--------------------------------
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM:
mi**@epprecht.net
MVP Program:
http://www.microsoft.com/mvp
Blog:
http://www.msmvps.com/epprecht/
"Zlatko Matić" <zl***********@sb.t-com.hr> wrote in message
news:d1**********@ls219.htnet.hr...
Excuse me, what is the difference between user and system_user and which
function should be used in audit trail table ?
Thanks.