日期:2014-05-18  浏览次数:20597 次

能否查询得到全局临时表的所有列名?
如题。能否得到全局临时表的所有列名?如:
SQL code

select * from syscolumns where id=object_id(N'Tempdb.dbo.##0123') and ( xtype=62 or xtype=106 )




------解决方案--------------------
SQL code
select * from tempdb.dbo.syscolumns where id=object_id('tempdb.dbo.##tb')