Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 1.0 and Visual Studio.NET > VS.NET 2002/2003
| Search | Today's Posts | Mark Forums Read
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old March 1st, 2005, 04:55 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: High Wycombe, UK, United Kingdom.
Posts: 344
Thanks: 0
Thanked 1 Time in 1 Post
Default configure SP debugging in SQL Server via VS.Net

I'm using VS.Net and have been told that I can use it to debug my stored procedures in SQL Server 2000. I've had a look on google and MSDN with not much luck, can someone show me how to do this from scratch ?
__________________
All the best

Greg
------------------
Greg Griffiths
Web & Livelink Developer
http://www.greggriffiths.org
  #2 (permalink)  
Old March 2nd, 2005, 03:07 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Greg,

Don't you know how to set it up, or can't you get it to work?

I know there are some issues with debugging, but in the past I managed to get it to work. I used the following MSDN section as a guideline:

http://msdn.microsoft.com/library/de...asp?frame=true

What's important is that you run Remote Components Setup, even on a local work station (at least, that's what the docs seem to say).

Next, it's important that you enable debugging in your Project's properties dialog and that you set a breakpoint in managed code; if your first breakpoint is in a stored procedure, your code won't break.

Finally, you may need this:

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

I needed that in the past to enable debugging; I think that managed code debugging falls under the category "Application Debugging", so you'll need to run the stored procedure they mentioned after each reboot.

Good luck; it's a pain to set up, but a wonderful feature once it works....

(Update: try the support article and "Exec sp_sdidebug 'legacy_on'" first; I just tested it, and it seemed enough to get it to work again on my machine. I looked at my installed programs and didn't see the Remote Debugging Components, so I am not sure you need those)

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Seven Nation Army by The White Stripes (Track 1 from the album: Elephant) What's This?


Similar Threads
Thread Thread Starter Forum Replies Last Post
sql server debugging wendy elizabeth SQL Server 2000 0 June 28th, 2007 08:45 PM
SQL Server 2005, SP 2 Install Problems kwilliams SQL Server 2005 1 December 1st, 2006 04:12 PM
Configure SQL Server to TCP/IP Sappu SQL Server ASP 1 March 19th, 2005 09:03 PM
Configure SQL Server to TCP/IP Sappu SQL Server ASP 1 March 19th, 2005 08:57 PM
configure jboos server sivapmk J2EE 2 August 9th, 2004 07:36 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.