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#
  4. what is the exact exception fro database faliure in a network

what is the exact exception fro database faliure in a network

Scheduled Pinned Locked Moved C#
questiondatabasesysadmin
5 Posts 5 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.
  • Y Offline
    Y Offline
    Yasithl
    wrote on last edited by
    #1

    i want to catch the exception for the network failure what is the exception for this ?

    D L E 3 Replies Last reply
    0
    • Y Yasithl

      i want to catch the exception for the network failure what is the exception for this ?

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      There is no single exception. There can be a mariad of problems causing different exceptions at different stages of connecting and executing a query.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008

      1 Reply Last reply
      0
      • Y Yasithl

        i want to catch the exception for the network failure what is the exception for this ?

        L Offline
        L Offline
        led mike
        wrote on last edited by
        #3

        yrkl wrote:

        what is the exception for this ?

        Did you try this one?[^]

        1 Reply Last reply
        0
        • Y Yasithl

          i want to catch the exception for the network failure what is the exception for this ?

          E Offline
          E Offline
          Ennis Ray Lynch Jr
          wrote on last edited by
          #4

          Network failures usually get TCP exceptions. Usually when I want to test a network failure adequately I yank the cable in debug mode.

          Need software developed? Offering C# development all over the United States, ERL GLOBAL, Inc is the only call you will have to make.
          If you don't ask questions the answers won't stand in your way.
          Most of this sig is for Google, not ego.

          P 1 Reply Last reply
          0
          • E Ennis Ray Lynch Jr

            Network failures usually get TCP exceptions. Usually when I want to test a network failure adequately I yank the cable in debug mode.

            Need software developed? Offering C# development all over the United States, ERL GLOBAL, Inc is the only call you will have to make.
            If you don't ask questions the answers won't stand in your way.
            Most of this sig is for Google, not ego.

            P Offline
            P Offline
            PIEBALDconsult
            wrote on last edited by
            #5

            Definitely; there's no data like emperical data.

            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