title: I am trying to connect to SQL Server through command prompt getting an error:
body: <blockquote>
    <p>Sqlcmd: Error: Microsoft ODBC Driver 11 for SQL Server : SQL Server Network Interfaces: Connection string is not valid [87]. .  </p>
    
    <p>Sqlcmd: Error: Microsoft ODBC Driver 11 for SQL Server : Login timeout expired.  </p>
    
    <p>Sqlcmd: Error: Microsoft ODBC Driver 11 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.</p>
  </blockquote>
  
  <p>I have checked all the services related to SQL Server are up and running also check the connection using command: </p>
  
  <pre><code>sqlcmd -S PSARGAR-T420\MSSQLSERVER -d master -U MDMUser_901  -P Psargar@123
  </code></pre>
  
  <p>I am using SQL Server authentication still I am facing same error.</p>