开发者

Sql Query to find Temp tables in DB

开发者 https://www.devze.com 2023-01-16 10:49 出处:网络
Please suggest me a query to find temp database table开发者_运维知识库s.select name from tempdb.sys.tables

Please suggest me a query to find temp database table开发者_运维知识库s.


select name from tempdb.sys.tables


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号