Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Hi,
I am using Stored Procedure to retrive the data from database instead of SQL Query.

How to debug step by step the Stored Procedure in Sql Server 2008 ?

If any one About this tell me.

Regards
Nanda Kishore.CH
Posted

Here is a basic walkthrough of how to do this:

http://msdn.microsoft.com/en-us/library/yet1b7by%28VS.80%29.aspx[^]
 
Share this answer
 
Comments
Wendelius 24-Aug-12 17:26pm    
Nice link, 5
Hi

Well the answer was sitting right in front of me the whole time.

In SQL Server Management Studio 2008 there is a Debug button in the toolbar. Set a break point in a query window to step through.

I dismissed this functionality at the beginning because I didn't think of stepping INTO the stored procedure, which you can do with ease.

SSMS basically does what FinnNK mentioned with the MSDN walkthrough but automatically.



I should add a step in there to find the stored procedure call with parameters I used SQL Profiler on my database.

http://msdn.microsoft.com/en-us/library/yet1b7by%28VS.80%29.aspx[^]
 
Share this answer
 
v2
Comments
Wendelius 24-Aug-12 17:26pm    
Good answer! My 5
In SSMS 2008, in the editor you will find a green arrow button, which will be used for debugging. You can also perform debugging from Menu > Debug > Start Debugging.
Most of the debugging shortcuts are same as VS 2008
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900