title: Connect Delphi to SQL database
body: <p>I'm using Microsoft SQL Server R2 Express to create databases. </p>
  
  <p>When I try to connect to a database using delphi, I have to use this Connection string : </p>
  
  <pre><code>ADOConnection1.ConnectionString := 'Provider=SQLOLEDB.1;Integrated Security=SSPI;Initial Catalog=db_formation;Data Source=EVILKID-pc\evilkid;';
  </code></pre>
  
  <p>where "EVILKID-PC\evilkid" is the name of my pc,
  <img src="https://i.stack.imgur.com/tAQYN.png" alt="enter image description here"></p>
  
  <p>As you can seem this will only work on my PC. What should I do to make it connect to localhost? I have tried changing the "Data Source" to "localhost" but it would not connect and I would get:</p>
  
  <p><code>[DBNETLIN][ConnectionOpen(Connect()).]SQL Server does not exist or access denied</code></p>
  
  <p>Any idea where the problem is?</p>