August 25, 2008 at 6:41 pm
How can I retrieve windows account username, last, first name for someone connecting to database with windows authentication as part of windows domain/group SQL login?
August 25, 2008 at 7:04 pm
I believe the function is SUSER_SNAME() or you can use SUSER_NAME(). For domain logins they return domain\username
Oh, and please don't cross post.
Thanks,
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
August 25, 2008 at 7:06 pm
This is identical to the posting by the same individual to SQL Server 2005 Security.
Ooops Jack you sure can type faster than I can ...
August 25, 2008 at 7:10 pm
bitbucket (8/25/2008)
Ooops Jack you sure can type faster than I can ...
Nah, just cut and paste better.:P
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply