Click here to Skip to main content
15,886,004 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
How to avoid/prevent having "connection failure" error when running a program?
Posted
Comments
Herman<T>.Instance 8-Feb-12 3:28am    
don't unplug the database server
jdandes 8-Feb-12 5:20am    
no...i didn't unplug the server.

if i'll going to check the connection state, it is connected. But i don't know i i'm going to execute a command it got an error "Connection Failed".

1 solution

just use the concept of TRANSACTIONS in your code,it will be safe because of its ROLLBACK characteristic when any problem occur...good luck..
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900