Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Database Space Capacity Planning


Database Space Capacity Planning

Author
Message
ESL_HSBC
ESL_HSBC
Forum Newbie
Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)

Group: General Forum Members
Points: 8 Visits: 151
Do you have a Spaceanalysis.sln for BIDS 2005 please
cmille19
cmille19
SSC Veteran
SSC Veteran (275 reputation)SSC Veteran (275 reputation)SSC Veteran (275 reputation)SSC Veteran (275 reputation)SSC Veteran (275 reputation)SSC Veteran (275 reputation)SSC Veteran (275 reputation)SSC Veteran (275 reputation)

Group: General Forum Members
Points: 275 Visits: 724
smthembu (10/13/2009)
Hi

When i execute spaceanalysis.job it fails with the below or is it me

Msg 206, Level 16, State 2, Procedure sp_add_jobstep, Line 0
Operand type clash: int is incompatible with uniqueidentifier


Updated job script, I was missing the server instance and repository parameters in the job. The two job steps should look like this:
& C:\bin\Write-VolToDb.ps1  ' Z002\SQL2K8'  spacedm


& C:\bin\Write-DbSpaceToDb.ps1 ' Z002\SQL2K8' spacedm





cmille19
cmille19
SSC Veteran
SSC Veteran (275 reputation)SSC Veteran (275 reputation)SSC Veteran (275 reputation)SSC Veteran (275 reputation)SSC Veteran (275 reputation)SSC Veteran (275 reputation)SSC Veteran (275 reputation)SSC Veteran (275 reputation)

Group: General Forum Members
Points: 275 Visits: 724
eric.simbozel-943459 (10/13/2009)
Do you have a Spaceanalysis.sln for BIDS 2005 please


No just 2008, the reports are fairly simply and mainly created from SSRS wizard and then changed to use the stored procedures.



cmille19
cmille19
SSC Veteran
SSC Veteran (275 reputation)SSC Veteran (275 reputation)SSC Veteran (275 reputation)SSC Veteran (275 reputation)SSC Veteran (275 reputation)SSC Veteran (275 reputation)SSC Veteran (275 reputation)SSC Veteran (275 reputation)

Group: General Forum Members
Points: 275 Visits: 724
Wanderer (10/13/2009)
Interesting stuff. we have something similar using SQL agent jobs, and SSRS.

Unless I missed it, the prediciton doesn't seem to have methods for predicting impact of reindexing and check database activities. Do you have metrics for establishing the peak DB size, or else of predicting the space required for that? We find that it is during the maintenance that our space alerts (85%, 90% etc.) most commonly trigger.



I've been using the process described in the article for the past year and haven't had the need to go any further than the data file. You could of course create a similar process that looks at table and index usage, but this would be slightly more complicated. The situation you describe with free space is somewhat trickly for instance I can point to several databases that basically are one giant table. These databases will need more than 15% or 10% free space to reindex. There really isn't a good rule of thumb for percent free space in database. However, by looking at the growth of data files over time which includes used space, as long as you don't shrink files afterward you should be fine.

Forecasting storage capacity is bit like horseshoes, you want to get things close enough, but anything more complicated may not be worth the effort. I've found I'm able to catch databases before they autogrow and able to detect abnormal growth conditions. But, I also find some false positives such as when a new database is first deployed and the data points are small. I'll go through the list of databases with less than 90 days left and research each one individually. This list is typically small, less than a couple of dozen in an environment with 1000+ databases. The ones that need to increase in size I will do so manually and the ones that are false positives I will ignore after research.



einman33
einman33
Mr or Mrs. 500
Mr or Mrs. 500 (575 reputation)Mr or Mrs. 500 (575 reputation)Mr or Mrs. 500 (575 reputation)Mr or Mrs. 500 (575 reputation)Mr or Mrs. 500 (575 reputation)Mr or Mrs. 500 (575 reputation)Mr or Mrs. 500 (575 reputation)Mr or Mrs. 500 (575 reputation)

Group: General Forum Members
Points: 575 Visits: 512
Great stuff here, good work!!!
vinodkn
vinodkn
Forum Newbie
Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)

Group: General Forum Members
Points: 5 Visits: 17
Look like very usefull stuff, thanks but cant try with out spacedm.procedures.sql
can you please copy paste the procedures in the article itself.

I tried downloading it from following link too but cant find spacedm.procedures.sql there also Sad

http://ddi59g.blu.livefilestore.com/y1p-lPWTbCLIn7R0-1VuM3g9iuCYpwwooYuPY8QPoGLu-hUq99CpAqc0CrHP53p_NjyRU8ZXBb2vtuY8lIfu7Oecg/SpaceAnalysis.zip?
graeme.black
graeme.black
Grasshopper
Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)

Group: General Forum Members
Points: 12 Visits: 44
Hi

I am stepping thorugh the various steps, but when I try to launch the powershell scripts, I get the following error

C:\BIN>WRITE-DBSPACETODB.PS1
Exception calling "Fill" with "1" argument(s): "Invalid object name 'server_spa
ce_lku'."
At C:\BIN\Write-DbSpaceToDb.ps1:13 char:15
+ [void]$da.fill( <<<< $dt)

I have the following entry in 'Server_space)lku'

servname\instance
cmille19
cmille19
SSC Veteran
SSC Veteran (275 reputation)SSC Veteran (275 reputation)SSC Veteran (275 reputation)SSC Veteran (275 reputation)SSC Veteran (275 reputation)SSC Veteran (275 reputation)SSC Veteran (275 reputation)SSC Veteran (275 reputation)

Group: General Forum Members
Points: 275 Visits: 724
vinodkn (10/14/2009)
Look like very usefull stuff, thanks but cant try with out spacedm.procedures.sql
can you please copy paste the procedures in the article itself.

I tried downloading it from following link too but cant find spacedm.procedures.sql there also Sad

http://ddi59g.blu.livefilestore.com/y1p-lPWTbCLIn7R0-1VuM3g9iuCYpwwooYuPY8QPoGLu-hUq99CpAqc0CrHP53p_NjyRU8ZXBb2vtuY8lIfu7Oecg/SpaceAnalysis.zip?


My apologies, somehow I've managed not to include the stored procedure creation statements yet again. I'll fix the download in the article and provide a script just for the procedure creation statements later this evening.



cmille19
cmille19
SSC Veteran
SSC Veteran (275 reputation)SSC Veteran (275 reputation)SSC Veteran (275 reputation)SSC Veteran (275 reputation)SSC Veteran (275 reputation)SSC Veteran (275 reputation)SSC Veteran (275 reputation)SSC Veteran (275 reputation)

Group: General Forum Members
Points: 275 Visits: 724
graeme.black (10/14/2009)
Hi

I am stepping thorugh the various steps, but when I try to launch the powershell scripts, I get the following error

C:\BIN>WRITE-DBSPACETODB.PS1
Exception calling "Fill" with "1" argument(s): "Invalid object name 'server_spa
ce_lku'."
At C:\BIN\Write-DbSpaceToDb.ps1:13 char:15
+ [void]$da.fill( <<<< $dt)

I have the following entry in 'Server_space)lku'

servname\instance


You need specifiy both a server name and database name, where server name is the SQL Server instance where your spacedm database is located and database is your space dm database. The script should be called like this:

Write-dbspacetodb.ps1 Z002\SQL2K8 spacedm



cmille19
cmille19
SSC Veteran
SSC Veteran (275 reputation)SSC Veteran (275 reputation)SSC Veteran (275 reputation)SSC Veteran (275 reputation)SSC Veteran (275 reputation)SSC Veteran (275 reputation)SSC Veteran (275 reputation)SSC Veteran (275 reputation)

Group: General Forum Members
Points: 275 Visits: 724
Link to the stored procedure creation statements. I will update the zip file included with the article, but this may take a few days to show up.



Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search