select name from dbo.sysobjects where OBJECTPROPERTY(id, N'IsUserTable') = 1 显示表名select count(name) from dbo.sysobjects where OBJECTPROPERTY(id, N'IsUserTable') = 1 显示 表数量
select * from sysobjectswhere xtype = 'u'