?
Solved

Debugging Stored Procedures

Posted on 2002-07-11
3
Medium Priority
?
230 Views
Last Modified: 2010-05-02
Hello,

I've posed this question in the MS-SQL area and hasn't gotten any response, hopefully someone can provide an answer.  I'm trying to use the t-sql debugger in VB.  I have it set up to where I create a data link to a database on my local machine, open the stored procedures folder and right click "debug".  It pulls up the t-sql debugger window.  When I click run, a message pops up and says "The query could not be debugged due to a problem coordinating events with the server".  It then displays in the bottom window "RETURN VALUE =0", and nothing happens.  I've been struggling with this, and can't seem to find any resource for the t-sql debugger. Can someone provide me with a step-by-step resource on how to debug stored procedures using the t-sql debugger in VB or in SQL Server Query Analyzer.  Also, are there any free products out there that will debug stored procedures and/or triggers

Thanks
0
Comment
Question by:tinman1412
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 2

Accepted Solution

by:
vbDoc earned 150 total points
ID: 7146421
0
 
LVL 22

Expert Comment

by:rspahitz
ID: 7146868
I don't knwo if this helps, but when I used to work with SQL*Server stored procedures, I just added messages along the way to ensure that it reached certain points in the st-proc.  This is not the best way but is easy.
0
 

Author Comment

by:tinman1412
ID: 7146952
Yes, I've been using the print statements, but when you have a good size stored procedure or trigger, it can be a pain
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

741 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question