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