Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
roshana
Starting Member
31 Posts |
Posted - 2010-03-13 : 20:03:17
|
Hi All I have to develop a new sql server database, with 40 tablesi checked with 'sp_spaceused' SP to find out the space used for tables in the database and the total DB size.but how can i calculate log file size and Data file size from this result.ThanksRoshana |
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2010-03-13 : 20:20:16
|
A database's size is all files combined together. Typically that's just an MDF and an LDF. An LDF is usually around 25-50% of the MDF. To calculate the MDF, you'll need to calculate how big each of the tables will be by finding the max/avg row size and multiplying that by the number of expected rows. Then you'll need to account for indexes.Tara KizerMicrosoft MVP for Windows Server System - SQL Serverhttp://weblogs.sqlteam.com/tarad/Subscribe to my blog"Let's begin with the premise that everything you've done up until this point is wrong." |
 |
|
|
|
|