I am using SQL Server 2008. Let's say I am creating a temporary table like this:
create table
How can I get a list of fields dynamically? I would like to see something like this:
Fields: col1 col2
I thought about the sys.columns query, but it does not seem to store information about temporary tables. Any ideas?
sql sql-server sql-server-2008 temp-tables
Anthony Apr 16 '09 at 13:22 2009-04-16 13:22
source share