title: How to connect Sqlcmd to the server?
body: <p>I just installed SQL Server 2008, and I wanted to use the command editor to execute queries.</p>
  
  <p>To do that I opened the command prompt, and I typed </p>
  
  <pre><code>Sqlcmd -S Serverinstance
  </code></pre>
  
  <p>but I got an error saying :</p>
  
  <blockquote>
    <p><em>Named Pipes Provider: Could not open a connection to SQL Server [53].<br>
    Sqlcmd : erreur : Microsoft SQL Server Native Client 10.0 : A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online..<br>
    Sqlcmd : erreur : Microsoft SQL Server Native Client 10.0 : Login timeout expired</em></p>
  </blockquote>
  
  <p>What should I do to get it connected to the server so I can proceed?</p>
  
  <p>Thank you :D.</p>