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. List of SQL error codes

List of SQL error codes

Scheduled Pinned Locked Moved C#
databasesql-serverhelp
3 Posts 3 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
    Yosh_
    wrote on last edited by
    #1

    Hi guys, does anyone know where i can get a list of mssql error codes. i need to enumerate the errors and treat anyone specifically. For ex: if it generates a unique key violation or foreign key violation, i could work on that. Thanx.

    He who goes for revenge must first dig two graves.

    L P 2 Replies Last reply
    0
    • Y Yosh_

      Hi guys, does anyone know where i can get a list of mssql error codes. i need to enumerate the errors and treat anyone specifically. For ex: if it generates a unique key violation or foreign key violation, i could work on that. Thanx.

      He who goes for revenge must first dig two graves.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Following links will be useful for error codes. For MS SQL Error codes http://msdn.microsoft.com/en-us/library/ms165727(SQL.90).aspx[^] For Error and Event Codes of any product of microsoft http://www.microsoft.com/technet/support/ee/ee_advanced.aspx[^] Hope this will help!

      Jinal Desai

      1 Reply Last reply
      0
      • Y Yosh_

        Hi guys, does anyone know where i can get a list of mssql error codes. i need to enumerate the errors and treat anyone specifically. For ex: if it generates a unique key violation or foreign key violation, i could work on that. Thanx.

        He who goes for revenge must first dig two graves.

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

        I've had to do that, but I handle only the ones I've actually encountered, not all of them. My DatabaseAccessor[^] article contains my SqlServerErrorInfo.cs and DatabaseException.cs files which may be of use to you.

        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