title: SQL Server connection string error cannot connect
body: <p>This is my connection string</p>
  <p>I have added double <code>\\</code> for the unrecognized escape sequence in vs 2019</p>
  <pre><code>SqlConnection db = new SqlConnection(&quot;Server=localhost\\DESKTOP-8QL52AL\\ASADI; Database=atm;  Integrated Security=True;&quot;);
  db.Open();
  </code></pre>
  <blockquote>
  <p>Error at line -26 check your server name or check your SQL Server is configured for remote connections</p>
  </blockquote>
  <p><a href="https://i.stack.imgur.com/hZrfk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hZrfk.png" alt="SQL SERVER CONNECTION IMAGE" /></a></p>