Relation between SQL Server login and session

  • Hi people

    I have question, how can I determine the relation between MS SQL Server user (SQL login ) and his session , when it connect to SQL Server

    Thank in advance

  • What do you mean by relation? You can get the session ID using the following DMV:

    SELECT

    session_id

    ,login_name

    FROM sys.dm_exec_sessions;

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply