How to Debug a Stored Procedure?

Answer Posted / swetha

Using PRINT command in stored procedure.
use print to check if the parameter values are fine.
When the stored procedure is executed then print will show
the output of those parameters/variables.

Is This Answer Correct ?    16 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the main differences between #temp tables and @table variables and which one is preferred?

557


What is an indexed view?

590


How to return the second 5 rows in ms sql server?

640


What are sub reports?

153


How is sql used in sql server?

507






How can you find out if the current user is a member of the specified microsoft® windows nt® group or microsoft sql server™ role?

606


What is 'write-ahead log' in sql server 2000 ?

631


Where to find ntwdblib.dll version 2000.80.194.0?

566


What are the restrictions that views have to follow?

566


What is the difference RDBMS and Graph Database?

637


What is the difference between a primary key and a unique key? Are they the same?

555


What is function of CUBE ?

613


Explain alternate key, candidate key and composite key in sql server?

526


What are the advantages of having an index on the sql server?

550


Explain some stored procedure creating best practices or guidelines?

529