473,387 Members | 1,515 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

how to debug stored procedures using SQL 2000

hi all,

how to debug a stored procedure ..

Actually what i did was split the stored procs and took and SQL query and executed it...

but i dont knw how to print the values of these stored procs like for ex the below is th epart of the stored proc

If @ProcessId = 2
BEGIN
Update Vendors
Set ProcessId = 2
where Num = @Num
and RevNum <= @RevNum
and Code = @Code
and Error_Message = isnull(@error_Message,Error_Message)
--RETURN
END

Actaully i am not able to understand the line
Error_Message = isnull(@error_Message,Error_Message)

and like why it has cme with the where clause ...

when i try to print the value of error_message , it says to declare it first .After declaring also it still gives an error.
Can you please tell me how to go about and understand the logic of the entire stored proc one by one ....

thanks and Regards
Sanika
Sep 20 '07 #1
1 2119
davef
98
hi all,

how to debug a stored procedure ..

Actually what i did was split the stored procs and took and SQL query and executed it...

but i dont knw how to print the values of these stored procs like for ex the below is th epart of the stored proc

If @ProcessId = 2
BEGIN
Update Vendors
Set ProcessId = 2
where Num = @Num
and RevNum <= @RevNum
and Code = @Code
and Error_Message = isnull(@error_Message,Error_Message)
--RETURN
END

Actaully i am not able to understand the line
Error_Message = isnull(@error_Message,Error_Message)

and like why it has cme with the where clause ...

when i try to print the value of error_message , it says to declare it first .After declaring also it still gives an error.
Can you please tell me how to go about and understand the logic of the entire stored proc one by one ....

thanks and Regards
Sanika
Script the sp and post the code. Also, show how you invoke it.
Sep 20 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: TJ Olaes | last post by:
Hello all, this is my second post to this newsgroup. It's a question about stored procedures and permissions and how these behave between databases. Here's the scenario. I have a database that...
11
by: jrefactors | last post by:
I want to know the differences between SQL Server 2000 stored procedures and oracle stored procedures? Do they have different syntax? The concept should be the same that the stored procedures...
1
by: rdshultz | last post by:
Good morning everyone. Could someone tell me if there is a book out there which gives examples of both VB.net code and creating SQL Server 2000 stored procedures and how you get them to work...
0
by: JollyK | last post by:
Hello folks, Previously I have debugged stored procedures with VS.NET 2002 on Windows 2000 successfully. I know that in order to debug a stored procedure, I need to enable SQLServer debugging...
0
by: scott | last post by:
xp pro vs 2003 enterprise arch 2003 server with sql 2000 From xp pro and when using the to "step into stored procedure" option upon connection to a database in VS 2003 im getting the message: ...
45
by: John | last post by:
Hi When developing vb.bet winform apps bound to sql server datasource, is it preferable to use SELECTs or stored procedure to read and write data from/to SQL Server? Why? Thanks Regards
2
by: Michael | last post by:
Running DB2 v7 UDB ("DB2 v7.1.0.93", "n031208" and "WR21333") on Windows XP, I am unable to find out why the "Build for Debug" option within Stored Procedure Builder is not enabled on Java stored...
0
by: Randy | last post by:
Does anyone know of a good tutorial/thread ? I want to debug my sql server 2000 stored procedures within VS2005. I also want to debug the stored procedures associated with the login/role...
4
by: Jeff Kish | last post by:
Hi. I am under the understanding that having the sql server 2005 db is not enough (like 2000 was) to debug stored procedures.. that I need to purchase (costly) visual studio 2005. Can someone...
0
by: Ryan | last post by:
PLEASE HELP!! I am trying to do what I think should be the simplest thing. In Visual Studio 2005, I set up a datagrid and then went ot configure a datasource for it. I made my connection to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.