title: Get login name in SQL SERVER
body: <p>I have an orphan user in sql server and I want to get the login name not the user name because they are not the same, I didn't find a solution that correspond to my needs.</p>
  
  <p><img src="https://i.stack.imgur.com/ubkEq.png" alt="login name"></p>