SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Debugging through procedure


Debugging through procedure

Author
Message
jchandramouli
jchandramouli
SSC-Enthusiastic
SSC-Enthusiastic (150 reputation)SSC-Enthusiastic (150 reputation)SSC-Enthusiastic (150 reputation)SSC-Enthusiastic (150 reputation)SSC-Enthusiastic (150 reputation)SSC-Enthusiastic (150 reputation)SSC-Enthusiastic (150 reputation)SSC-Enthusiastic (150 reputation)

Group: General Forum Members
Points: 150 Visits: 145
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
weitzera
weitzera
Ten Centuries
Ten Centuries (1,000 reputation)Ten Centuries (1,000 reputation)Ten Centuries (1,000 reputation)Ten Centuries (1,000 reputation)Ten Centuries (1,000 reputation)Ten Centuries (1,000 reputation)Ten Centuries (1,000 reputation)Ten Centuries (1,000 reputation)

Group: General Forum Members
Points: 1000 Visits: 629
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.'

jchandramouli
jchandramouli
SSC-Enthusiastic
SSC-Enthusiastic (150 reputation)SSC-Enthusiastic (150 reputation)SSC-Enthusiastic (150 reputation)SSC-Enthusiastic (150 reputation)SSC-Enthusiastic (150 reputation)SSC-Enthusiastic (150 reputation)SSC-Enthusiastic (150 reputation)SSC-Enthusiastic (150 reputation)

Group: General Forum Members
Points: 150 Visits: 145
Thanks Smile

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


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search