sql server 查询数据库有几张表

-- 查询有几张表

select count(*) as TableCount from sys.tables;

--测试

select top 10 * from sys.tables;

sql server 查看数据表数量

https://blog.51cto.com/u_16213443/7232416