Disable Message in Sql query
-
Hi, As iam a beginer in database application using VC++, i couldn't overcome an issue. " Help me out" Iam connecting SQL database through "ODBC" connectivity, everything works out at normal operation. if the SQL engine is stopped, and if i try to connect, the SQL API throughs the Message Box--promting some connection failure. How to disable the Message Box????? Help Me Madhu
-
Hi, As iam a beginer in database application using VC++, i couldn't overcome an issue. " Help me out" Iam connecting SQL database through "ODBC" connectivity, everything works out at normal operation. if the SQL engine is stopped, and if i try to connect, the SQL API throughs the Message Box--promting some connection failure. How to disable the Message Box????? Help Me Madhu
It is not a "messageBox", it's called "Assertion". First set break-points in your program and run it debug mode. at one point you will find your code screwing up. copy the block of code and paste here and start your quesion afresh. and dont post a blunt message like this. :doh:
VuNic
-
Hi, As iam a beginer in database application using VC++, i couldn't overcome an issue. " Help me out" Iam connecting SQL database through "ODBC" connectivity, everything works out at normal operation. if the SQL engine is stopped, and if i try to connect, the SQL API throughs the Message Box--promting some connection failure. How to disable the Message Box????? Help Me Madhu
Build your Application in
RELEASE
mode.Warning:
First understand the use of DEBUG mode. when an Assertion is thrown it says something has gone false.(wrong! ), so while developing always use DEBUG mode , so that it gives you warning about failed conditions. In your case, you said that when the server is down it throws an assertion. instread of just ignoring the assertion and moving to release mode, you implementtry
-catch()
in your code. I mean to say "Exception handling". never ignore an assertion and bybass it. Only after handling all the exceptions its advisable to move to release version, good luck.
VuNic