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 is subquery? Explain the properties of a subquery?

681


How to update a field in SQL after ALTERING a row?

877


You are designing a strategy for synchronizing an SQL Azure database and multiple remote Microsoft SQL Server 2008 databases. The SQL Azure database contains many tables that have circular foreign key relationships?

113


What do you understand by triggers and mention the different types of it?

669


What is report subscription?

109






What is page-level compression?

721


List few advantages of stored procedure.

722


What are the basic functions for master, msdb, model, tempdb databases?

783


How to change parameter value inside the report?

131


what is hash nonclustered index

712


What is model database? : SQL Server Architecture

762


What is sql server database?

669


What is the default value of an integer data type in sql server 2005?

745


How to drop existing views from a database in ms sql server?

736


Do you know what are various aggregate functions that are available?

709