Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Debugging stored procedure VS2005

Reply
Thread Tools

Debugging stored procedure VS2005

 
 
MarkusJNZ@gmail.com
Guest
Posts: n/a
 
      09-30-2006
Hi, I have a problem with a stored procedure which is executed via an
SqlCommand object using command parameters to pass in the info.

e.g.

SqlCommand cmd = new SqlCommand();
// Add in attributes, connect to database here
// ....etc

cmd.ExecuteNonQuery();

There is a problem when the above call is made and I need to track it
down, I think there is a trigger on one of the tables but I need to
make sure.

Is it possible to step into the Stored Procedure call via VS2005 (We
are using MSSQL2005) and see what's happening? Failing that can I get a
dump of the stored procedure and all the cmd parameter values which are
getting passed in so I can manually run it?

I can set a debug point and inspect the cmd parameter variables via the
debugger but the SP takes in over 30 parameters and manually copying
them from the debug info would take a long time.

TIA
MArk

 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error when debugging stored procedure Peter Afonin ASP .Net 0 06-14-2010 07:35 PM
procedure as argument in procedure AlexWare VHDL 2 10-23-2009 09:14 AM
'Procedure or function <stored procedure name> has too many arguments specified',,,ARGH! Mike P ASP .Net 0 06-19-2006 01:19 PM
How to Debug a MSSQL2000 Stored Procedure in VS2005 Randy ASP .Net 0 06-09-2006 05:28 PM
Debugging stored procedure in visual studio? bredal Jensen ASP .Net 1 07-28-2004 10:14 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57