Solved

Debugging Stored Procedures

Posted on 2002-07-11
3
226 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
3 Comments
 
LVL 2

Accepted Solution

by:
vbDoc earned 50 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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
DIR issue 7 54
VBA color chart bars 12 86
Protecting vb6 & .Net code Obfuscation 18 121
VBA - If Bookmark = "XXBOOKMARKXX" then 15 28
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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 …
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

772 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