Connection string creates copies of DB in windows forms
<p>I have a windows forms c# solution containing 3 projects and 1 class library</p>

<p>I added a DB called EventsForMissile and when I connect to it using the following string</p>

<pre><code>@"data source=(LocalDB)\v11.0;attachdbfilename=|DataDirectory|\EventsForMissiles.mdf;integrated security=True;MultipleActiveResultSets=True;Connect Timeout=30";
</code></pre>

<p>it creates a copy of the DB in my bin/Debug folder, and that is where anything gets written to.</p>

<p>When I try and read the data and display it in a <code>DataGridView</code> it tries to read the original DB in the root folder of the project where it was added. </p>

<p>So using the same exact connection string, on the same Form, when I <code>INSERT into</code> the table, it writes to the DB in the bin/Debug folder, when I <code>SELECT *</code> from the table it tries to read it from the DB in the root folder.</p>

<p>Any ideas??</p>

<p>(I apologize if this is poorly worded)</p>
