Frans
Wed May 04 03:30:29 CDT 2005
Frank Rizzo wrote:
> Frans Bouma [C# MVP] wrote:
>> Frank Rizzo wrote:
>>> I am debugging a stored proc inside the IDE which is great. However,
>>> the stored proc dumps some data into temp tables. Is there a way to
>>> see the contents of the temp tables while in debug mode?
>>
>> Try to use ##temp tables instead of #temp tables so they're
>> visible for other connections as well. You can then debug the procs in
>> query analyzer which is much more efficient than in vs.net.
>
> Say what? You can debug in Query Analyzer? That's something new to me.
> By debug I mean, step through the code.
Yes, you can, you can even set breakpoints :)
Just right-click the procedure in the object browser and select
'debug'. You then fill in initial parameters and start at the beginning
of the proc. You can then set a breakpoint, step through the code etc.
When you use ##temp tables, IMHO you can see them from another
connection. This means that you can step through the proc, and when the
temptable is created ,you open another query analyzer and check the table.
> Also, can you or can you not see the contents of the temp tables in
> vs.net debugger?
#temp tables are connection specific, if I'm not mistaken ##temp tables
are accessable by all connections.
FB
--
------------------------------------------------------------------------
Get LLBLGen Pro, productive O/R mapping for .NET:
http://www.llblgen.com
My .NET blog:
http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------