Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Debugging through procedure Expand / Collapse
Author
Message
Posted Tuesday, December 23, 2008 9:20 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Monday, December 20, 2010 4:47 AM
Points: 42, Visits: 141
Hi All,

Just look into the procedure below.

[color=#D80000]Go
CREATE PROC usp_Sample
(
@intOutput INT OUTPUT
)
AS
SELECT @intOutput = 1
GO[/color]


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
Post #625160
Posted Friday, January 2, 2009 11:38 AM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Yesterday @ 5:43 PM
Points: 880, Visits: 606
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.'
Post #629006
Posted Friday, January 9, 2009 3:38 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Monday, December 20, 2010 4:47 AM
Points: 42, Visits: 141
Thanks :)

"I Love Walking In The Rain So No One Can See Me Crying ! " ~ Charlie Chaplin
Post #633220
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse