title: Connection to MS SQL Server database closes when application starts c#
body: <p>Every time i attempt to debug my c# application i start the connection by right clicking on the server explorer but as soon as the application starts the connection closes again (get the red disconnection symbol) and i cannot seem to keep it open. Not sure why this is happening and im sure its nothing to do with the code that has been written as this has only recently started happening.</p>
  
  <p>I think this is also causing another problem i am having where data is not being inserted into the database when an insert command is run.</p>