title: Specifying domain in sqsh
body: <p>I'm trying to connect to my SQL Server from a Linux terminal using SQSH. The line is:</p>
  
  <pre><code>sqsh -S &lt;ip address&gt; -U &lt;DOMAIN\user&gt;
  </code></pre>
  
  <p>which throws an error:</p>
  
  <blockquote>
    <p>Msg 18456, Level 14, State 1 Server 'DC2', Line 1<br>
    Login failed for user ''.</p>
  </blockquote>
  
  <p>Notice that it seems to have removed the '\' which separates my domain and user.</p>
  
  <p>On the server side, my event log confirms the same thing. The event reads:</p>
  
  <blockquote>
    <p>Login failed for user 'DOMAINuser'.<br>
    Reason: Could not find a login matching the name provided.</p>
  </blockquote>
  
  <p>I've tried using single and double quotation marks to encapsulate the domain and user name, but when I do that, the request does not even make it to the server, probably because the quotes signify something else syntactically.</p>
  
  <p>Does anyone know what I'm doing wrong?</p>