Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Disable Message in Sql query

Disable Message in Sql query

Scheduled Pinned Locked Moved C / C++ / MFC
databasehelpc++jsontutorial
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    madhu_v
    wrote on last edited by
    #1

    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

    E 2 Replies Last reply
    0
    • M madhu_v

      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

      E Offline
      E Offline
      Eytukan
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • M madhu_v

        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

        E Offline
        E Offline
        Eytukan
        wrote on last edited by
        #3

        Build your Application in RELEASEmode. 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 implement try-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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups