A #temp table is owned by the SP that creates it so it will be dropped
automatically once the SP ends. However, there are ways to "see" the data in
a #temp table--they're stored in TempDB with a UserID/owner prefix. If you
get into Query Analyzer and enter this SQL (for your own test table) you can
see this in action.
SELECT TOP 10 Author, Year_Born INTO #TEMP FROM authors
Copies 10 rows into #temp and creates a table named
"dbo.#temp______________________000001B" (or somesuch). The problem is that
it does not seem that any of the tools included in the Visual Studio or SQL
Server suites (and I tried four of them) could open this table. I might try
to write a test application to do so though. You should be able to see the
data (I've done in the past) one way or another. No, the Visual Studio IDE
in 2003 and 2005 won't let you see it.
hth
--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________