Groups | Blog | Home
all groups > sql server mseq > may 2007 >

sql server mseq : Get user syntax


Ryan Mcbee
5/17/2007 10:24:00 AM
I am building a view for a report and one of the requirements is to grab the
user who is running the report. What would this syntax look like? I thought
it was getuser(), but no luck there.

Thanks,

Russell Fields
5/17/2007 3:44:09 PM
Ryan,

Depending on whether you want a User or a Login, you can try one of the
following: CURRENT_USER, SYSTEM_USER, USER_NAME, SUSER_SNAME. Check them
out in the Books Online, or just run them and choose what you prefer to use.

RLF

[quoted text, click to view]

AddThis Social Bookmark Button