tags:

views:

42

answers:

3

Please suggest me a query to find temp database tables.

A: 

Maybe this helps

Rob
+4  A: 
select name from tempdb.sys.tables
Martin Smith
It works thanks a lot.
Simhadri
+1  A: 

All temp tables created are stored in the tempdb available on sql server. So run this query in tempdb, you will find available temp tables on the server -

select * from sysobjects where "xtype" = 'u'

Hope this will help you

Sachin Shanbhag
It also works good but Martin's solution is better I feel.Thanks for your time.
Simhadri