• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 561
  • Last Modified:

execution context - token

Hi experts, i am reading about execution context, but i don't understand a login token ( sys.login_token)  and a user token(sys.user_token).
I need an example (like a hands on lab) in which they explain the diference between these two token
2 Solutions
Sreedhar VengalaSr. Consultant - Business IntelligenceCommented:
Look into this http://www.sommarskog.se/grantperm.html got details explanation of sys.login_token and sys.user_token
enrique_aeoAuthor Commented:
Please experts, I need something more precise, an example would be excellent transact sql
Kevin CrossChief Technology OfficerCommented:
Run this on your system :

-- http://technet.microsoft.com/en-us/library/ms186740.aspx
select *
from sys.login_token;

And read the Technet link and should help as you will see this is as the site says a listing of credentials including their type (Windows, SQL Server, etc.), their principal id, sid, etc.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now