SELECT SCHEMA_NAME(SCHEMA_ID)AS ID,name as Table_name FROM sys.tables;--查询表视图
SQl代码
原文:https://www.cnblogs.com/cdjbolg/p/11763797.html