如何快速知道sqlserver数据库中那些表有数据

exec sp_MSforeachtable N' if exists(select 1 from ?) print ''?''+''(Y)'' else print ''?''+''(N)'''

 

posted @ 2013-05-20 23:47  Trilyn  阅读(287)  评论(0编辑  收藏  举报