title: How can I get the current user in Microsoft SQL Server?
body: <p>I am trying to get the current user logged into my Microsoft SQL Server database.</p>
  
  <p>After some research, I have found functions such as <code>CURRENT_USER</code> or <code>USER</code>, which are supposed to show me the user I am using at that moment.</p>
  
  <pre class="lang-sql prettyprint-override"><code>SELECT USER, CURRENT_USER
  </code></pre>
  
  <p>The problem is that these functions keep giving me <code>dbo</code> as the result, which is, as far as I know, the schema I am using.</p>
  
  <p>Am I not using the correct functions?</p>
  
  <p>Maybe there is any problem with my users?</p>