Reputation: 167
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.
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.
Upvotes: 0
Views: 1737
Reputation: 167
Forgot I hadn't answered this. As Joel suggested, what i was seeing in the Server Explorer where the connection seemed to fail was just the Server Explorer behaving as it should and not the actual problem. The problem with data not being inserted was just a problem with my insert statement. CHECK YOUR STATEMENTS.
Upvotes: 0
Reputation:
Try to follow those steps:
Upvotes: 1