title: Connect ASP.NET WebSite to SQL Database
body: <p>I am currently trying to establish a connection between an ASP.NET web site project and a Database built by SQL Server 2008 R2.</p>
  
  <p>The way I am required to do so is to use the <code>connectionString</code> from the <code>Web.config</code> page, but I have no idea what value to give it or how to establish a connection using said value. (Using C#)</p>
  
  <p>Any help would be appreciated, as I found next to no information about the subject.</p>
  
  <p>Here is the (default) value that is currently in the <code>Web.config</code> page:</p>
  
  <pre><code>&lt;connectionStrings&gt;
      &lt;add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient"/&gt;
  &lt;/connectionStrings&gt;
  </code></pre>