Results 1 to 4 of 4

Thread: Interactively debugging a SQL Server Stored Procedure?

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jan 2004
    Location
    Southern California
    Posts
    5,034

    Interactively debugging a SQL Server Stored Procedure?

    Is it possible to debug a SP while debugging a VB.Net/C# app? While I'm debugging my Windows app (using VB.Net), there is a point where it calls a Stored Procedure. The moment I step into the statement that executes the SP, I would like to be able to enter the SP through SSMS and step through the SP. Is this possible?

    Thanks,
    Blake

  2. #2
    Frenzied Member
    Join Date
    Dec 2014
    Location
    VB6 dinosaur land
    Posts
    1,191

    Re: Interactively debugging a SQL Server Stored Procedure?

    I don't think so. Seems someone made a complaint about debugging SPs in the recent stored procedure thread as a reason not to use them.

    Anyway, I test SPs using standard database tools. So SQL Plus or SQL Developer for Oracle. Call the procedure with the same parameters your program did and see what the output is. There is likely a better way, but that always worked for me if it didn't appear to be working as I expected.

  3. #3
    Wall Poster TysonLPrice's Avatar
    Join Date
    Sep 2002
    Location
    Columbus, Ohio
    Posts
    3,836

    Re: Interactively debugging a SQL Server Stored Procedure?

    Yes there is a great MS SQL Server debugger, depending on the release you are on, that has many of the same capabilities of the IDE debugger (break points, reset variables, hover and view, etc.) It runs from Visual Studio or Enterprise Manager. A google search should get you moving in the right direction.

    The down side is you need system administrator access and many DBAs will not grant that kind of access.

    Google this:

    visual studio sql server debugger
    Please remember next time...elections matter!

  4. #4

    Thread Starter
    PowerPoster
    Join Date
    Jan 2004
    Location
    Southern California
    Posts
    5,034

    Re: Interactively debugging a SQL Server Stored Procedure?

    Thanks Tyson...that helped!

    Now all I have to do is convince our IT Director to give me privileges...HAHA
    Blake

Posting Permissions

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



Click Here to Expand Forum to Full Width