Home All Groups Group Topic Archive Search About

Query Analyzer Debugging - Won't stop at breakpoint

Author
16 Feb 2006 9:30 PM
JL
Hi all,

I am trying to debug an SP in Query Analyzer but after I've specified the
input values, as soon as I click on the "debug" button, the debugger will
skip all my breakpoints and finish the SP.

I would like to debug my SP step-by-step at the breakpoints.  Is there a
solution to this?

Thanks,
Joel

Author
16 Feb 2006 11:20 PM
Erland Sommarskog
JL (J*@discussions.microsoft.com) writes:
> I am trying to debug an SP in Query Analyzer but after I've specified the
> input values, as soon as I click on the "debug" button, the debugger will
> skip all my breakpoints and finish the SP.
>
> I would like to debug my SP step-by-step at the breakpoints.  Is there a
> solution to this?

Yes, but there are so much hassle to get this working, that I've more or
less given up on using the SQL debugger. PRINT and SELCTs do just as
well for me.

There is a topic "Troubleshooting the Transact-SQL Debugger" in Books
Online, but since that text was written the XP SP2 firewall and other
things have appeared that could complicate matters.

Exactly which version of SQL Server to you have on the server, which
version of the tools on the client? And which version of Windows do
you have on the machines? And is the firewall active? In this case, you
could try opening port 135 on your client for the SQL Server machine.



--
Erland Sommarskog, SQL Server MVP, esq***@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
Author
16 Feb 2006 11:54 PM
JL
Oh, thank you so much for your reply...I've been searching online for a long
time and still found no solution to this issue.

For my DEV machine:
Windows XP Professional (Version 2002) with SP2
SQL Query Analyzer (Version SQL 8.00.194).

For the server:
Microsoft SQL Server  2000 - 8.00.2039 (Intel X86)
Windows NT 5.2 (Build 3790: )

Thanks again!

Show quote
"Erland Sommarskog" wrote:

> JL (J*@discussions.microsoft.com) writes:
> > I am trying to debug an SP in Query Analyzer but after I've specified the
> > input values, as soon as I click on the "debug" button, the debugger will
> > skip all my breakpoints and finish the SP.
> >
> > I would like to debug my SP step-by-step at the breakpoints.  Is there a
> > solution to this?
>
> Yes, but there are so much hassle to get this working, that I've more or
> less given up on using the SQL debugger. PRINT and SELCTs do just as
> well for me.
>
> There is a topic "Troubleshooting the Transact-SQL Debugger" in Books
> Online, but since that text was written the XP SP2 firewall and other
> things have appeared that could complicate matters.
>
> Exactly which version of SQL Server to you have on the server, which
> version of the tools on the client? And which version of Windows do
> you have on the machines? And is the firewall active? In this case, you
> could try opening port 135 on your client for the SQL Server machine.
>
>
>
> --
> Erland Sommarskog, SQL Server MVP, esq***@sommarskog.se
>
> Books Online for SQL Server 2005 at
> http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
> Books Online for SQL Server 2000 at
> http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
>
Author
17 Feb 2006 8:10 AM
Erland Sommarskog
JL (J*@discussions.microsoft.com) writes:
> For my DEV machine:
> Windows XP Professional (Version 2002) with SP2
> SQL Query Analyzer (Version SQL 8.00.194).

OK, start with applying SP4 for SQL 2000 on your development machine.

You must also make sure that the server can access port 135 on your
machine through the Windows firewall.

Finally, I believe that SQL Server must be running under an account
that has some privileges requires, I am foggy on exactly which.

(In my shop it works as it does for you. It used to work, but then my
sysadmin cut down the privs for the SQL Server service account.)

--
Erland Sommarskog, SQL Server MVP, esq***@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx

AddThis Social Bookmark Button