473,411 Members | 2,019 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 software developers and data experts.

Visual Studio 2003 to SQl Server 2000

Is it possible to debug a stored procedure in SQL Server 2000 from VS 2003 ?
Thanks,
Smith
Nov 21 '05 #1
3 2236
On Tue, 7 Jun 2005 14:13:35 -0700, "Allen Smith"
<AS***********@hotmail.com> wrote:
Is it possible to debug a stored procedure in SQL Server 2000 from VS 2003 ?
Thanks,
Smith


Depends on what you mean by debug. You can trap SQL errors with a
Try/Catch structure and in the Catch you can display the SQL error
with the Exception.Method property.

Nov 21 '05 #2
Yes it's possible. See
http://msdn.microsoft.com/library/de...ldebugging.asp

--
HTH

Éric Moreau, MCSD, Visual Developer - Visual Basic MVP
(http://aspnet2.com/mvp.ashx?EricMoreau)
Conseiller Principal / Senior Consultant
Concept S2i inc. (www.s2i.com)

"Allen Smith" <AS***********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Is it possible to debug a stored procedure in SQL Server 2000 from VS 2003
?
Thanks,
Smith

Nov 21 '05 #3
Yes you can. Search the MSDN help file for 'debug stored procedure' and
you'll find everything you need to know.

Briefly, you right-click on the stored procedure from the server explorer,
and select 'step into stored procedure'. Once you're in, you are prompted
for any input parameters and then can step through the procedure. You have a
locals window, a watch window, and can set break points and so forth.

One thing you'll probably have to do manually is give yourself execute
permissions on the master.sp_sdidebug stored procedure, which you'll find in
the extended stored procedures section in Enterprise Manager.

So far I haven't found any way to leave a breakpoint in the stored procedure
and have it hit from application code. It doesn't look like it's possible.

Tom Dacon
Dacon Software Consulting

"Allen Smith" <AS***********@hotmail.com> wrote in message
news:#D**************@TK2MSFTNGP09.phx.gbl...
Is it possible to debug a stored procedure in SQL Server 2000 from VS 2003 ? Thanks,
Smith

Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Sam Vanhoutte | last post by:
Help, I reinstalled my laptop with the new Windows 2003 server, standard edition. I also installed Visual Studio.NET 2003. And here it goes wrong! When I start up Visual Studio, it takes more...
0
by: Jeannette | last post by:
Hi! We currently use SQL Server 2000 Enterprise Edition and Visual Studio.NET 2003. Now, we are comparing the Crystal Reports for Visual Studio.NET 2003 with the SQL Server Reporting Services...
17
by: Andi Plotsky | last post by:
I am not a .NET developer. I want the Developer's Edition of Visual Studio for use with my Access2000 databases. Does anyone have a clue as to where to find it - my office manager says only .NET...
4
by: wASP | last post by:
Hi, I am contemplating the purchase of Microsoft Visual Studio .NET, and I've noticed that the prices range anywhere from $200 to $600 USD:...
2
by: Belee | last post by:
1. I am using sql server express and visual studio 2003. I have been able to create the connection to the database in server explorer but cannot update table definitions. It gives an error that...
5
by: Patrick Olurotimi Ige | last post by:
Hi, I have VStudio.Net 2003 installed but can i install Visual Web Developer also on the same PC. My current .Net Frameork version is 1.1. Will the Visual Web Developer install ASP.NET 2.0? And...
5
by: Microsoft | last post by:
Hi, I have Visual Basic .net 2003 (Standard Edition) & SQL Server 2000 Developer Edition. When trying to create a connection in the server explorer from the .net IDE I get a number of problems;...
1
by: Philip Leduc | last post by:
Hi there, I am a MS Access VBA programmer trying to get my feet wet using VB.net / SQL server. I have SLQ 2000/visual studio 2003 loaded and did get a SQL2005/visual studio 2005 software...
4
by: Cindy H | last post by:
Hi I am currently using Visual Studio.Net 2003 running on Windows Server 2000 operating system. I have used Visual Studio.net 2003 connecting to Access 2002 databases in the pass with great...
5
by: Salad | last post by:
As far as I'm concerned I support the chopping off of fingers of programmers that put out worms and viruses. I could care less if the programmer was 5 years old...off with the fingers. Anyway,...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.