sql查询当前数据库的所有表名

 SELECT sys.tables.name as TableName from sys.tables 

原文地址:https://www.cnblogs.com/fanying/p/10919064.html