select count(name) as usertableCounts from 数据库名.dbo.sysobjects where xtype=\'U\' and name<> \'dtproperties\' 经过测试可用。 相关文章: 2022-01-09 2022-12-23 2022-12-23 2022-12-23 2022-01-01 2021-12-09 2021-12-24 2022-01-26