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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. SQLClient related question

SQLClient related question

Scheduled Pinned Locked Moved Database
questioncsharpdatabasehelp
4 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
    mysorian
    wrote on last edited by
    #1

    I enter an error(deliberate) in a connection string like a missing password for non-windows logon to SQL 2005 in my VB.NET program. No matter I set the FireInfoMessageEventOnUserErrors to true or false and add a handler to handle the SQLClnt's InfoMessage. But this procedure never gets fired, only the SQLClient's SQLException error is picked up in the try--catch block and the ExceptionAssistnat shows up. When does the FireInfoMessageEventOnUserError really gets to be evaluated?

    R 1 Reply Last reply
    0
    • M mysorian

      I enter an error(deliberate) in a connection string like a missing password for non-windows logon to SQL 2005 in my VB.NET program. No matter I set the FireInfoMessageEventOnUserErrors to true or false and add a handler to handle the SQLClnt's InfoMessage. But this procedure never gets fired, only the SQLClient's SQLException error is picked up in the try--catch block and the ExceptionAssistnat shows up. When does the FireInfoMessageEventOnUserError really gets to be evaluated?

      R Offline
      R Offline
      Rob Graham
      wrote on last edited by
      #2

      It is only fired for informational or warning messages, not errors. We need to graduate from the ridiculous notion that greed is some kind of elixir for capitalism - it's the downfall of capitalism. Self-interest, maybe, but self-interest run amok does not serve anyone. The core value of conscious capitalism is enlightened self-interest. Patricia Aburdene

      M 1 Reply Last reply
      0
      • R Rob Graham

        It is only fired for informational or warning messages, not errors. We need to graduate from the ridiculous notion that greed is some kind of elixir for capitalism - it's the downfall of capitalism. Self-interest, maybe, but self-interest run amok does not serve anyone. The core value of conscious capitalism is enlightened self-interest. Patricia Aburdene

        M Offline
        M Offline
        mysorian
        wrote on last edited by
        #3

        Is it not true that it is related to the severity of errors, exception reporting taking over in exceptionally severe cases?

        R 1 Reply Last reply
        0
        • M mysorian

          Is it not true that it is related to the severity of errors, exception reporting taking over in exceptionally severe cases?

          R Offline
          R Offline
          Rob Graham
          wrote on last edited by
          #4

          No, it is used only for informational or warning messages. All errors will raise an exception. We need to graduate from the ridiculous notion that greed is some kind of elixir for capitalism - it's the downfall of capitalism. Self-interest, maybe, but self-interest run amok does not serve anyone. The core value of conscious capitalism is enlightened self-interest. Patricia Aburdene

          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