Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to find properties of a temporary table?

Status
Not open for further replies.

Plato2

Programmer
Dec 6, 2002
192
US
If I have a table in database I can find out properties of a table by typing - sp_help <TABLE_NAME>
But how can I find out properties of a temporary table that I created by using # sign?

Thanks in advance
 
exec tempdb..sp_help #a

As long as it's the same spid.
If not then you will have to get the full table name and use the system tables.

======================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top