Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > .NET 2.0 and Visual Studio. 2005 > Visual Studio 2005
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Visual Studio 2005 For discussing Visual Studio 2005. Please post code questions about a specific language (C#, VB, ASP.NET, etc) in the correct language forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Studio 2005 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 28th, 2007, 08:48 PM
Registered User
Join Date: Jun 2007
Location: , , .
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
Default debugging in visual studio.net 2005

 I basically want to 'step through' t-sql 2000 statements and I have tried the several methods. Can you tell me what would you suggest? I have tired the following methods:
 1. I have a question about setting up visual studio.net 2005 professional version to debug with a sql server 2000 database. The visual studio.net 2005 is on my workstation and the sql server 2000 databases are on two separate window server boxes.
  My goal is to debug some t-sql commands. To do this, I have setup a project as a database project. The insturctions on the microsoft website url says that I need to
attach to a process and the process that I need to attach to is 'sqlserver.exe'. However, I can not find this process to connect so. Thus, I can not attach to it if it is not in the drop down list.
  Thus can you tell me what my next step would be?
  Does it make a difference if I select wanting to debug as 'T-sql clr' or with the 'SQL CLR' debugger?
2. I have tried to use query analyzer 2000 from my workstation so that I can debug a stored procedure. I select the stored procedure I want from the object browser and right click to debug. The debug window does show up and the only icons that are not grayed out are the set breakspoints, and start to run. It does not allow me to set through or 'step into'. What is wrong here?

Reply With Quote
The Following User Says Thank You to wendy elizabeth For This Useful Post:
  #2 (permalink)  
Old June 28th, 2007, 10:58 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts

In order to debug you need to be able to attach to a process, typically this process is one running on your local machine. Attaching to another machine's process is going to difficult if not impossible. I know there are ways to do remote debugging for ASP.NET apps, but this requires the installation of remote debugging helpers on the server.

In your case, it would be best if you can run the database on your development machine (i.e. install SQL SERVER) so you can attach to the sqlserver.exe process. I haven't done this myself, but the principals of debugging should be the same as other processes.

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Deploy CR with Visual Studio 2005 VB.Net clflyer Crystal Reports 0 March 7th, 2007 12:41 PM
Visual Studio Debugging Zeus_Man General .NET 1 November 3rd, 2006 07:49 PM
Visual Studio .net2003 and Visual Studio 2005 Gert Visual C++ 1 January 24th, 2006 05:10 AM

All times are GMT -4. The time now is 11:00 PM.

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