title: SQL connection string for database on network
body: <p>I want to connect to a database on a host except localhost, my DBMS is SQL Server and I'm using ado.net, like this:</p>
  
  <pre><code>SqlConnection con = new SqlConnection(constr);
  con.Open();
  SqlCommand cmd = new SqlCommand("insert into st (ID,Name) values ('"+cnt.ToString()+"','havijuri');", con);
  //some sql commands.
  con.Close();
  </code></pre>
  
  <p>what should I use as the constr (connection string), and with these information:</p>
  
  <ul>
  <li>host IP: 10.15.10.12</li>
  <li>the file is database1.mdf, </li>
  <li>in this directory(on the host): D:\Project1\DataBase</li>
  </ul>
  
  <p>Tell me if any other information is needed</p>