Viewing post 1 (of 1 total)
try this
SELECT REPLACE(SUSER_NAME(), HOST_NAME() , '\','') as userId
i hope it works..
i have mine setup as
SELECT REPLACE(SUSER_NAME(), 'Dom-cs\','') as userId
May 20, 2010 at 1:58 pm
#1170432