Results 1 to 2 of 2
  1. #1
    Join Date
    May 2004

    Unanswered: Trace executed SQL

    Hi folks

    Is there any (easy!) way in which I can see the SQL that has been executed. I'm using stored procs that create & execute other stored procs(via sp_executesql). At the early stages there are often trivial errors in the created procs that cause rather general exception messages that do not give much of a clue as to where the error is. (It's tedious to find these in the debugger) ... and was wondering if there's any trace output type option I can turn on to see what sql has been presented for execution.


  2. #2
    Join Date
    Apr 2004
    Kansas City, MO
    Look at SQL Server Profiler. You can set up traces to capture the execution of stored procedures. You can also filter out by tons of different criteria.
    When life gives you a lemon, fire the DBA.

Posting Permissions

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