Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Debugging Stored Procedure

Author  Topic 

Ramnadh
Starting Member

23 Posts

Posted - 2004-05-08 : 03:01:19
Hi

I am unable to debug the stored procedure in SQL Server 2000. When i do right click on the Stored Procedure and Click Debug by giving the parameters it is just returning the value. It is not holding to debug the entire Stored procedure. Can any one help me.

Ramnadh

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2004-05-08 : 03:12:04
Does this help:

http://sqljunkies.com/WebLog/sqlpartner/archive/2003/11/20/479.aspx




Tara
Go to Top of Page

Ramnadh
Starting Member

23 Posts

Posted - 2004-05-08 : 03:59:32
Hi,

Thanks for the reply.

Just now i got the solution. The problem is that
if you are using a version of Query Analyzer that is earlier than Microsoft SQL Server 2000 SP3 or a version of Microsoft Visual Studio earlier than Microsoft Visual Studio .NET, the debugging cannot be done because Microsoft has disabled T-SQL Debugger for earlier clients for security reasons. To enable T-SQL Debugger for earlier clients, a member of the sysadmins server role, such as sa must explicitly enable debugging by running the following code:

Exec sp_sdidebug 'legacy_on'

You must repeat this procedure whenever you restart the server. Microsoft does not recommend that you use T-SQL Debugger on a production server.

To disable T-SQL Debugger for earlier clients, a member of the sysadmins server role can run the following code:

Exec sp_sdidebug 'legacy_off'

to know more about this refer this link

http://support.microsoft.com/?kbid=328151


Ramnadh
Go to Top of Page
   

- Advertisement -