title: How to get the connection String from a database
body: <p>I have created a database with SQL Server Management Studio, I would like to now use it in my C# application. I need the connection string?</p>
  
  <p>Where can I find the connection string, and where is my database stored?</p>
  
  <p>Do I have to publish it or something like that, or is it in my documents somewhere?</p>
  
  <pre><code>using (var conn = new SqlConnection("your connection string to the database"))
  </code></pre>
  
  <p>How do I obtain the <strong>connection string</strong>? Where can I find the connection string to copy paste into the above section?</p>
  
  <p>How to I publish my database so that Visual Studio can pick it up? Then I can just pull the connection string of there?</p>