摘要: --系统存储过程sp_MSforeachtable的使用方法 --01.print所有以ap_开头的表的表名称 EXEC sp_MSforeachtable @command1 = 'print ''?''', @whereand = 'and o.name like ''ap_%'''; --02 阅读全文
posted @ 2023-07-25 11:25 herry507 阅读(64) 评论(0) 推荐(0)
摘要: SELECT t.NAME AS TableName, s.Name AS SchemaName, p.rows AS RowCounts, SUM(a.total_pages) * 8 AS TotalSpaceKB, CAST(ROUND(((SUM(a.total_pages) * 8) / 阅读全文
posted @ 2023-07-25 11:25 herry507 阅读(66) 评论(0) 推荐(0)