Debugging through procedure

  • Hi All,

    Just look into the procedure below.

    Go

    CREATE PROC usp_Sample

    (

    @intOutput INT OUTPUT

    )

    AS

    SELECT @intOutput = 1

    GO

    Like VS 2005, where we can debug through codes, is it possible to debug through this procedure while running my web application?

    I think it may sound crazy about this question. But i am sure my question is valid.

    Thanks in advance for your response.

    "I Love Walking In The Rain So No One Can See Me Crying ! " ~ Charlie Chaplin

  • In VS2005, you can create a new database project, which will allow you to create and debug test scripts. You can step into the sql stored procedure code this way, but remember that the granularity of most tsql code (at least well-written ones) is not very high. A single select statement, even a really complicated one, is one statement.

    Another way to track what's going on from your web application is to use SQL profiler.



    Dan Guzman - Not the MVP (7/22/2010)
    All questions have to be prefaced by Server version and 'according to MS Docs' or 'my own personal opinion based on how much detail I felt like digging into at the time.'

  • Thanks 🙂

    "I Love Walking In The Rain So No One Can See Me Crying ! " ~ Charlie Chaplin

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply