title: How to get DOMAIN name from SQL Server?
body: <p>I tried using <code>EXEC sp_who2;</code> to find the server's domain name, but it gives host, users, etc.</p>
  
  <p>I need to know my SQL Server's <strong>domain name</strong>, so I can install a plugin to the SQL Server Management Studio.</p>