查看分发数据库数据量sql2008

php中文网
发布: 2016-06-07 15:48:04
原创
1543人浏览过

create table #t(name varchar(100),num int) insert #t select 'MStracer_tokens', (select count(1) from dbo.[MStracer_tokens] with (nolock)) insert #t select 'MSarticles', (select count(1) from dbo.[MSarticles] with (nolock)) insert #t select


 


create table #t(name varchar(100),num int)
 
insert #t  select 'MStracer_tokens',  (select count(1) from dbo.[MStracer_tokens] with (nolock))
insert #t  select 'MSarticles',  (select count(1) from dbo.[MSarticles] with (nolock))
insert #t  select 'MStracer_history',  (select count(1) from dbo.[MStracer_history] with (nolock))
insert #t  select 'MSsync_states',  (select count(1) from dbo.[MSsync_states] with (nolock))
insert #t  select 'MSsubscriptions',  (select count(1) from dbo.[MSsubscriptions] with (nolock))
insert #t  select 'MSmerge_articleresolver',  (select count(1) from dbo.[MSmerge_articleresolver] with (nolock))
insert #t  select 'MSmerge_subscriptions',  (select count(1) from dbo.[MSmerge_subscriptions] with (nolock))
insert #t  select 'MSrepl_transactions',  (select count(1) from dbo.[MSrepl_transactions] with (nolock))
insert #t  select 'MSrepl_commands',  (select count(1) from dbo.[MSrepl_commands] with (nolock))
insert #t  select 'MSrepl_originators',  (select count(1) from dbo.[MSrepl_originators] with (nolock))
insert #t  select 'MSreplication_monitordata',  (select count(1) from dbo.[MSreplication_monitordata] with (nolock))
insert #t  select 'MSsubscriber_info',  (select count(1) from dbo.[MSsubscriber_info] with (nolock))
insert #t  select 'MSsubscriber_schedule',  (select count(1) from dbo.[MSsubscriber_schedule] with (nolock))
insert #t  select 'MSsnapshot_history',  (select count(1) from dbo.[MSsnapshot_history] with (nolock))
insert #t  select 'MSlogreader_history',  (select count(1) from dbo.[MSlogreader_history] with (nolock))
insert #t  select 'MSdistribution_history',  (select count(1) from dbo.[MSdistribution_history] with (nolock))
insert #t  select 'MSmerge_sessions',  (select count(1) from dbo.[MSmerge_sessions] with (nolock))
insert #t  select 'MSmerge_articlehistory',  (select count(1) from dbo.[MSmerge_articlehistory] with (nolock))
insert #t  select 'MSrepl_errors',  (select count(1) from dbo.[MSrepl_errors] with (nolock))
insert #t  select 'MSmerge_history',  (select count(1) from dbo.[MSmerge_history] with (nolock))
insert #t  select 'MSmerge_identity_range_allocations',  (select count(1) from dbo.[MSmerge_identity_range_allocations] with (nolock))
insert #t  select 'MSsnapshot_agents',  (select count(1) from dbo.[MSsnapshot_agents] with (nolock))
insert #t  select 'MSlogreader_agents',  (select count(1) from dbo.[MSlogreader_agents] with (nolock))
insert #t  select 'MSdistribution_agents',  (select count(1) from dbo.[MSdistribution_agents] with (nolock))
insert #t  select 'MSmerge_agents',  (select count(1) from dbo.[MSmerge_agents] with (nolock))
insert #t  select 'MSrepl_identity_range',  (select count(1) from dbo.[MSrepl_identity_range] with (nolock))
insert #t  select 'MSpublication_access',  (select count(1) from dbo.[MSpublication_access] with (nolock))
insert #t  select 'MSqreader_agents',  (select count(1) from dbo.[MSqreader_agents] with (nolock))
insert #t  select 'MSqreader_history',  (select count(1) from dbo.[MSqreader_history] with (nolock))
insert #t  select 'MSrepl_backup_lsns',  (select count(1) from dbo.[MSrepl_backup_lsns] with (nolock))
insert #t  select 'MSpublicationthresholds',  (select count(1) from dbo.[MSpublicationthresholds] with (nolock))
insert #t  select 'IHpublishers',  (select count(1) from dbo.[IHpublishers] with (nolock))
insert #t  select 'IHpublishertables',  (select count(1) from dbo.[IHpublishertables] with (nolock))
insert #t  select 'IHarticles',  (select count(1) from dbo.[IHarticles] with (nolock))
insert #t  select 'IHpublishercolumns',  (select count(1) from dbo.[IHpublishercolumns] with (nolock))
insert #t  select 'IHcolumns',  (select count(1) from dbo.[IHcolumns] with (nolock))
insert #t  select 'IHindextypes',  (select count(1) from dbo.[IHindextypes] with (nolock))
insert #t  select 'IHpublisherindexes',  (select count(1) from dbo.[IHpublisherindexes] with (nolock))
insert #t  select 'IHpublishercolumnindexes',  (select count(1) from dbo.[IHpublishercolumnindexes] with (nolock))
insert #t  select 'IHpublications',  (select count(1) from dbo.[IHpublications] with (nolock))
insert #t  select 'IHconstrainttypes',  (select count(1) from dbo.[IHconstrainttypes] with (nolock))
insert #t  select 'IHpublisherconstraints',  (select count(1) from dbo.[IHpublisherconstraints] with (nolock))
insert #t  select 'IHpublishercolumnconstraints',  (select count(1) from dbo.[IHpublishercolumnconstraints] with (nolock))
insert #t  select 'IHsubscriptions',  (select count(1) from dbo.[IHsubscriptions] with (nolock))
insert #t  select 'sysschemaarticles',  (select count(1) from dbo.[sysschemaarticles] with (nolock))
insert #t  select 'MScached_peer_lsns',  (select count(1) from dbo.[MScached_peer_lsns] with (nolock))
insert #t  select 'MSrepl_version',  (select count(1) from dbo.[MSrepl_version] with (nolock))
insert #t  select 'MSpublisher_databases',  (select count(1) from dbo.[MSpublisher_databases] with (nolock))
insert #t  select 'MSpublications',  (select count(1) from dbo.[MSpublications] with (nolock))


select * from #t order by num desc
drop table #t

 【一淘专享价】lenovo/联想 b460a-ith(l) 扬天b460 i3 电脑 包邮

华友协同办公自动化OA系统
华友协同办公自动化OA系统

华友协同办公管理系统(华友OA),基于微软最新的.net 2.0平台和SQL Server数据库,集成强大的Ajax技术,采用多层分布式架构,实现统一办公平台,功能强大、价格便宜,是适用于企事业单位的通用型网络协同办公系统。 系统秉承协同办公的思想,集成即时通讯、日记管理、通知管理、邮件管理、新闻、考勤管理、短信管理、个人文件柜、日程安排、工作计划、工作日清、通讯录、公文流转、论坛、在线调查、

华友协同办公自动化OA系统 0
查看详情 华友协同办公自动化OA系统
最佳 Windows 性能的顶级免费优化软件
最佳 Windows 性能的顶级免费优化软件

每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。

下载
来源:php中文网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
开源免费商场系统广告
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号