Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2005

    Question Unanswered: Debugging Triggers

    I was wondering if it is possible to pop up a dialog box from a SQL trigger.

    This would be a great way to debug triggers as you could report variable values in the dialog box.

    If not, does anybody have any suggestions as to the best way of reporting out variable values whilst a trigger is running?

  2. #2
    Join Date
    Nov 2004
    on the wrong server
    Provided Answers: 6
    Sometimes I will feed values and sql strings into a table, sometimes I will use profiler with all of the XXXcompleted events turned on for th Transact-SQL and stored prpcedures classes.
    “If one brings so much courage to this world the world has to kill them or break them, so of course it kills them. The world breaks every one and afterward many are strong at the broken places. But those that will not break it kills. It kills the very good and the very gentle and the very brave impartially. If you are none of these you can be sure it will kill you too but there will be no special hurry.” Earnest Hemingway, A Farewell To Arms.

  3. #3
    Join Date
    Feb 2004
    In front of the computer
    Provided Answers: 54
    Install the stored procedure debugging package from the MS-SQL CD? I haven't used it in a while, but it lets you set breakpoints, watches, etc. very much like Visual Studio.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts