Solved

Debugging Stored Procedures

Posted on 2002-07-11
3
224 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…
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…

760 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now