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. Database & SysAdmin
  3. Database
  4. debugging a stored procedure

debugging a stored procedure

Scheduled Pinned Locked Moved Database
databasedebugginghelpsql-servercom
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.
  • U Offline
    U Offline
    User 8664010
    wrote on last edited by
    #1

    hi experts, my stored procedure is very big...i want to debug it..when i start debugging it , i am getting the following error failed to start debugger additional information: error hresult e_fail has been returned from a call to a com component.(mscorlib) i googled regarding that...i am not able to debug... my db is remote sql server 2008 r2 coud anyone help me pls

    L A C 3 Replies Last reply
    0
    • U User 8664010

      hi experts, my stored procedure is very big...i want to debug it..when i start debugging it , i am getting the following error failed to start debugger additional information: error hresult e_fail has been returned from a call to a com component.(mscorlib) i googled regarding that...i am not able to debug... my db is remote sql server 2008 r2 coud anyone help me pls

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

      Member 8701813 wrote:

      my stored procedure is very big.

      That's a design-problem. Cut it into smaller pieces that are easier to debug/verify.

      Member 8701813 wrote:

      i am not able to debug...

      It means that the debugger doesn't work; I'd suggest running the sproc and see where it fails, and with what error. Past that part in a post here, and we'll have a look :)

      Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

      1 Reply Last reply
      0
      • U User 8664010

        hi experts, my stored procedure is very big...i want to debug it..when i start debugging it , i am getting the following error failed to start debugger additional information: error hresult e_fail has been returned from a call to a com component.(mscorlib) i googled regarding that...i am not able to debug... my db is remote sql server 2008 r2 coud anyone help me pls

        A Offline
        A Offline
        Azarudhin
        wrote on last edited by
        #3

        hi, you are telling that your sp is big instead of at one time u debugging can u cut that sp and check which part is throwing error in your Sp because i had also tried like that only when i faced this situation. I think it will help you. Regards, S Azarudhin

        S 1 Reply Last reply
        0
        • A Azarudhin

          hi, you are telling that your sp is big instead of at one time u debugging can u cut that sp and check which part is throwing error in your Sp because i had also tried like that only when i faced this situation. I think it will help you. Regards, S Azarudhin

          S Offline
          S Offline
          SudhirKankal
          wrote on last edited by
          #4

          see my trick posted in code project, it may help you, however you will have to modify the existing code to call the logger on all the places where you feel the exception handling is weak or may need some values to trace the reason. Logging error, debug, info messages into log tables

          Sudhir Kankal

          1 Reply Last reply
          0
          • U User 8664010

            hi experts, my stored procedure is very big...i want to debug it..when i start debugging it , i am getting the following error failed to start debugger additional information: error hresult e_fail has been returned from a call to a com component.(mscorlib) i googled regarding that...i am not able to debug... my db is remote sql server 2008 r2 coud anyone help me pls

            C Offline
            C Offline
            coded007
            wrote on last edited by
            #5

            try to print messages over the screen it really helps you!!!!

            Mani Prabhakar

            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