SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Get windows username in trigger
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

imranswork
Starting Member

Bahrain
1 Posts

Posted - 04/16/2014 :  03:53:22  Show Profile  Reply with Quote
Dear All,

User is login to the application using SQL Server Autentication method. I want to get his windows OS username to log in one of my security trigger.

All of the following:
SUSER_NAME(), SYSTEM_USER AS OSUser, SUSER_SNAME() AS SuserSName, ORIGINAL_LOGIN() As OriginalLogin, USER_NAME() as UserName
Are returning database user name, while i need OS username.

Kindly help

imran

ahmeds08
Aged Yak Warrior

India
573 Posts

Posted - 06/10/2014 :  03:29:12  Show Profile  Send ahmeds08 a Yahoo! Message  Reply with Quote
i think you can also get the ip of the system

Javeed Ahmed
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.12 seconds. Powered By: Snitz Forums 2000