Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Debugging SQL Servers SPs from VS.NET2003
I have debugged stored procedures by selecting the Server Explorer,
selecting a SP, an click "Step Into."

However, is it possible to write .NET code (for example VB.NET code that
uses ADO.NET to access the database) that calls a SP using an ADO.NET
Command object and be able to step into a SQL Server Stored procedure, debug
it, and return?

This would be great. For many stored procedures that require many parameters
to be manually entered, this would be a great feature.

I heard that it can be done but I haven't been able to find out how.



Report this thread to moderator Post Follow-up to this message
Old Post
Chad
12-21-04 08:59 PM


Re: Debugging SQL Servers SPs from VS.NET2003
Yes it is possible.

-First, it requires VS.Net Enterprise.
-Into the project's properties, you need to check "SQL Server debugging" in
the Debugging tab (under Configuration properties).
-You need to execute this line on your SQL Server (using Query analyzer) :
sp_sdidebug 'legacy_on'

After all this, if you have proper rights, you should be able to step into a
SP.
--

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)


"Chad" <chad.dokmanovich@unisys.com> wrote in message
news:cq9geg$kj9$1@trsvr.tr.unisys.com...
>I have debugged stored procedures by selecting the Server Explorer,
>selecting a SP, an click "Step Into."
>
> However, is it possible to write .NET code (for example VB.NET code that
> uses ADO.NET to access the database) that calls a SP using an ADO.NET
> Command object and be able to step into a SQL Server Stored procedure,
> debug it, and return?
>
> This would be great. For many stored procedures that require many
> parameters to be manually entered, this would be a great feature.
>
> I heard that it can be done but I haven't been able to find out how.
>



Report this thread to moderator Post Follow-up to this message
Old Post
Éric Moreau [VB MVP]
12-22-04 01:57 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Visual Studio archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 08:12 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.