|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Monday, September 24, 2012 6:15 AM
Points: 8,
Visits: 148
|
|
| Do you have a Spaceanalysis.sln for BIDS 2005 please
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Thursday, May 16, 2013 5:46 AM
Points: 257,
Visits: 671
|
|
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
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Thursday, May 16, 2013 5:46 AM
Points: 257,
Visits: 671
|
|
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.
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Thursday, May 16, 2013 5:46 AM
Points: 257,
Visits: 671
|
|
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.
|
|
|
|
|
Mr 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!!!
|
|
|
|
|
Forum 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?
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Wednesday, August 04, 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
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Thursday, May 16, 2013 5:46 AM
Points: 257,
Visits: 671
|
|
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.
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Thursday, May 16, 2013 5:46 AM
Points: 257,
Visits: 671
|
|
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
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Thursday, May 16, 2013 5:46 AM
Points: 257,
Visits: 671
|
|
|
|
|