Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase ««12345»»»

Database Space Capacity Planning Expand / Collapse
Author
Message
Posted Tuesday, October 13, 2009 9:01 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Yesterday @ 4:54 AM
Points: 8, Visits: 149
Do you have a Spaceanalysis.sln for BIDS 2005 please
Post #802203
Posted Tuesday, October 13, 2009 10:03 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Friday, April 18, 2014 8:01 AM
Points: 258, Visits: 701
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




Post #802259
Posted Tuesday, October 13, 2009 10:06 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Friday, April 18, 2014 8:01 AM
Points: 258, Visits: 701
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.



Post #802263
Posted Tuesday, October 13, 2009 10:19 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Friday, April 18, 2014 8:01 AM
Points: 258, Visits: 701
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.



Post #802272
Posted Tuesday, October 13, 2009 12:15 PM


Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: Wednesday, January 25, 2012 8:14 AM
Points: 567, Visits: 512
Great stuff here, good work!!!
Post #802316
Posted Wednesday, October 14, 2009 7:12 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, July 13, 2010 10:28 PM
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

http://ddi59g.blu.livefilestore.com/y1p-lPWTbCLIn7R0-1VuM3g9iuCYpwwooYuPY8QPoGLu-hUq99CpAqc0CrHP53p_NjyRU8ZXBb2vtuY8lIfu7Oecg/SpaceAnalysis.zip?
Post #802684
Posted Wednesday, October 14, 2009 7:17 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Wednesday, August 4, 2010 4:21 AM
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
Post #802691
Posted Wednesday, October 14, 2009 7:51 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Friday, April 18, 2014 8:01 AM
Points: 258, Visits: 701
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

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.



Post #802735
Posted Wednesday, October 14, 2009 8:12 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Friday, April 18, 2014 8:01 AM
Points: 258, Visits: 701
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



Post #802768
Posted Wednesday, October 14, 2009 3:08 PM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Friday, April 18, 2014 8:01 AM
Points: 258, Visits: 701
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.


Post #803135
« Prev Topic | Next Topic »

Add to briefcase ««12345»»»

Permissions Expand / Collapse