Answered by:
Identify user as impersonate.

Question
-
good morning everyone
Current_user me list the user, and if it is to impersonate, which syntax i use?
Thx
- Edited by Everton Barciela Wednesday, June 5, 2013 12:32 PM
Wednesday, June 5, 2013 12:28 PM
Answers
-
Hi Estevaun,
Use Original_Login()
http://msdn.microsoft.com/en-us/library/ms189492(v=sql.90).aspx
Thanks and Regards,
Shanoof Basheer
- Marked as answer by Everton Barciela Wednesday, June 5, 2013 1:22 PM
Wednesday, June 5, 2013 1:08 PM
All replies
-
Your question is unclear. Are you talking about ProxyCredentails in SQL Server?
http://msdn.microsoft.com/en-us/library/ms189064(v=sql.100).aspx
Please use Marked as Answer if my post solved your problem and use Vote As Helpful if a post was useful.
Wednesday, June 5, 2013 12:37 PM -
Current_user returns the name of the current user. If the user impersonates it will return the impersonated user name and not the current user name. But you can revert and make it display the current user again.
For more details , please refer this.
http://msdn.microsoft.com/en-us/library/ms176050.aspx
Refer the section C in the link mentioned above.
Thanks and Regards,
Shanoof Basheer
Wednesday, June 5, 2013 12:41 PM -
Thx for replies.
Shanoof,
Without using the revert, syntax which brings me to the actual user, even with impersonate?
Wednesday, June 5, 2013 12:56 PM -
Hi Estevaun,
Use Original_Login()
http://msdn.microsoft.com/en-us/library/ms189492(v=sql.90).aspx
Thanks and Regards,
Shanoof Basheer
- Marked as answer by Everton Barciela Wednesday, June 5, 2013 1:22 PM
Wednesday, June 5, 2013 1:08 PM -
Thanks a lot.
- Marked as answer by Everton Barciela Wednesday, June 5, 2013 1:22 PM
- Unmarked as answer by Naomi N Thursday, June 6, 2013 3:56 AM
Wednesday, June 5, 2013 1:20 PM