10

Please suggest me a query to find temp database tables.

1
  • Maybe this helps Commented Sep 15, 2010 at 14:12

2 Answers 2

13
select name from tempdb.sys.tables
Sign up to request clarification or add additional context in comments.

Comments

7

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

1 Comment

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.