BI备忘录

BI,SSIS,SSAS,SSRS
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

估计SQL Server2008数据文件大小

Posted on 2010-09-26 10:59  安德鲁  阅读(602)  评论(0)    收藏  举报

建立数据仓库前,需要大致估计数据库的大小。

遗憾的是微软并未提供自带这样的工具

BOL

 

To estimate the size of a database, estimate the size of each table individually and then add the values obtained. 
The size of a table depends on whether the table has indexes and, if they do, what type of indexes.

ps:这里貌似没有考虑到.log文件大小?

 

 

每个表大小估计:

1.Heap或者Clustered Index大小

2.nonClustered index大小

两者相加即为一张表所占用大小

 

具体参考:

http://technet.microsoft.com/en-us/library/ms187445.aspx

 

另外一篇

http://www.sql-server-performance.com/faq/database_space_grow_p1.aspx

 

 

SQL Server DataSizer Tool,用于估计SQL Server 7.0的大小。

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=564c5704-d4f5-4ee8-9f3c-cb429499d075&displaylang=en

 

The Basics of Sizing a SQL Server Database(http://www.sqlservercentral.com/articles/Administration/sizingadatabase/383/)

概要介绍了估计数据大小方法,提到了个生成测试数据的工具Datatect(http://www.datatect.com/)