Microsoft
Software
Hardware
Network
Question : temporary table structure
I need to find the table structure for a local temporary table.
create table #test (
a int,
b int
)
sp_columns #test
doesn't work.
If it's possible I want to use some an existing stored procedure (such as sp_columns)
and avoid the searching in sistem databases, tables ....
Answer : temporary table structure
The only way I can think of to do it is to do a
SELECT * INTO ##schematesttable FROM #mytemptable WHERE 1=0
thus taking a "schema copy" into table name that you can identify.
but this wont work concurrently unless you seed the ##schematesttable table name.
but ar Richard says there is no "simple solution". in 99.9% of cases when a temp table is created the schema should be known.
Random Solutions
WordPerfect 10 hangs when opening some documents.
SCCM 2007 Constant Despooler error 4406
problem opening word attachment with XP professional
Same form on different computers
RUNDLL error message "jyku.fjo" on computer start up
Access Pivot chart - need different scales on right and left axis
active directory, W2k8 R2 DC, Kerberos failures, Event ID: 3, 4771, 4769, 4768, 4776, 4625 source: Microsoft Windows security
Problem with "like" keyword, when database is in chinese
VS2008 opens .aspx files in new IE window instead of Designer/Source Editor
Pass Web Page as Parameter to Class in App_Code Folder