title: Cannot connect to LocalDB via sqlcmd
body: <p>I am currently learning SQL Server and am having problems connecting to my local database using <code>sqlcmd</code>.</p>
  
  <p>When I type in the following into Powershell:</p>
  
  <pre><code>sqlcmd -S "(localdb)\mssqllocaldb"
  </code></pre>
  
  <p>I get the following error message:</p>
  
  <blockquote>
    <p>Sqlcmd: Error: Microsoft ODBC Driver 13 for SQL Server : SQL Server Network Interfaces: The system cannot find the file specified.<br>
    Sqlcmd: Error: Microsoft ODBC Driver 13 for SQL Server : Login timeout expired.<br>
    Sqlcmd: Error: Microsoft ODBC Driver 13 for SQL Server : 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.</p>
  </blockquote>
  
  <p>I can connect to the local database if I use SQL Server Management Studio. I can also connect to the local database if I use the instance name pipe.</p>
  
  <p>I have a clean install of Windows 10 x64, Visual Studio Community, and SQL Server Management Studio 2016.</p>