Re: How to debug stored procedure in sql server

From: Vinodk (vinodk_sct_at_NO_SPAM_hotmail.com)
Date: 03/31/04


Date: Wed, 31 Mar 2004 11:56:45 +0530

Adding to Greg's thread. Investigate if you have SQL Server SP3 /SP3a
installed. Because the debug feature is disabled by default. You need to
explicitly enable the same. Refer to the release notes for the service packs
for further information.

-- 
HTH,
Vinod Kumar
MCSE, DBA, MCAD, MCSD
http://www.extremeexperts.com
Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinfo/productdoc/2000/books.asp
"Greg Linwood" <g_linwoodQhotmail.com> wrote in message
news:uqI7mFuFEHA.1840@TK2MSFTNGP12.phx.gbl...
> (a) Open Query Analyser
> (b) Connect to Server
> (c) Press F8 for Object Browser
> (d) Expand Database
> (e) Expand Stored Procedures
> (f) Right click on Stored Procedure you want to debug
> (g) Select "debug" from menu
>
> Begin debugging from there.. Use F10, F11 for step into / over etc.
>
> Regards,
> Greg Linwood
> SQL Server MVP
>
> "Iter" <anonymous@discussions.microsoft.com> wrote in message
> news:99C0890C-5A1F-464C-94EF-F3B5FC2AA1F0@microsoft.com...
> > How to debug complicated stored procedure in sql server query analyzer
or
> Profiler. I can set break point,stop there, can see the value of variable.
> thanks.
> >
>
>


Relevant Pages

  • Re: Unable to debug SQL from within the .NET IDE
    ... Given an application that uses a SQL Server stored procedure that is causing ... Use Visual Studio .NET to debug SQL Server stored procedures (in both ... Debugging a stored procedure in standalone mode ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: testing with sql server
    ... Regarding your SQL Server 2000 debugging problems, ... version to debug with a sql server 2000 database. ... My goal is to debug some t-sql commands. ... attach to a process and the process that I need to attach to is ...
    (microsoft.public.sqlserver.setup)
  • Re: Debugging nested Stored Procedures
    ... With SQL Server 2000 stored procedure debugging, ... this feature only works from SQL Server Query Analyzer. ... right-click on the stored procedure and select 'Debug'. ... Debugger' use to provide this but the product is no longer. ...
    (microsoft.public.sqlserver.tools)
  • Re: Can i debug/watch on the triggers INSERTED and DELETED records/values?
    ... > Sometimes I do debug remotely. ... we found that debugging did not work when you had Windows ... Now, port 135 is not any port: ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ...
    (comp.databases.ms-sqlserver)
  • Re: Debugging Windows Service
    ... I am writing a Windows Service that works with SQL Server. ... I want to be able to debug it, ... it looks as if Local System does not have access to SQL Server, ...
    (microsoft.public.dotnet.general)