title: Can't connect to SQL Server Express using sqlcmd.exe
body: <p>Env.: Vista SP1, SQL Server Express 2005</p>
  
  <p>I'm able to connect to my localhost SQL Server using SQL Server Management Studio, using Windows authentication and, to the best of my knowledge, all default parameters, including network protocol.</p>
  
  <p>Now I try to connect using sqlcmd.exe to no avail:</p>
  
  <pre><code>C:\Program Files\Microsoft SQL Server\90\Tools\Binn&gt;sqlcmd -S \\PCSERGEHOME\SQLE
  XPRESS
  HResult 0x57, Level 16, State 1
  Named Pipes Provider: Invalid parameter(s) found [87].
  Sqlcmd: Error: Microsoft SQL Native Client : An error has occurred while establi
  shing a connection to the server. When connecting to SQL Server 2005, this failu
  re may be caused by the fact that under the default settings SQL Server does not
   allow remote connections..
  Sqlcmd: Error: Microsoft SQL Native Client : Login timeout expired.
  </code></pre>
  
  <p>I also tried to use -U PCSERGEHOME\Serge. I'm then prompted for my password but the result is the same.</p>
  
  <p>TIA for your help.</p>