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


Three Sample reports for the Automated DBA: Space Usage SnapShotter


Three Sample reports for the Automated DBA: Space Usage SnapShotter

Author
Message
YeshuaAgapao
YeshuaAgapao
Right there with Babe
Right there with Babe (731 reputation)Right there with Babe (731 reputation)Right there with Babe (731 reputation)Right there with Babe (731 reputation)Right there with Babe (731 reputation)Right there with Babe (731 reputation)Right there with Babe (731 reputation)Right there with Babe (731 reputation)

Group: General Forum Members
Points: 731 Visits: 211
Comments posted to this topic are about the item Three Sample reports for the Automated DBA: Space Usage SnapShotter



Jerry Sommerville
Jerry Sommerville
SSC Rookie
SSC Rookie (34 reputation)SSC Rookie (34 reputation)SSC Rookie (34 reputation)SSC Rookie (34 reputation)SSC Rookie (34 reputation)SSC Rookie (34 reputation)SSC Rookie (34 reputation)SSC Rookie (34 reputation)

Group: General Forum Members
Points: 34 Visits: 189
Jess - This would be much more helpful with the schema for the Admin database attached. Otherwise, we have to back into your schema design. Not much time available for doing that. Can you post the schema DDL please.

Thanks.

... Jerry
YeshuaAgapao
YeshuaAgapao
Right there with Babe
Right there with Babe (731 reputation)Right there with Babe (731 reputation)Right there with Babe (731 reputation)Right there with Babe (731 reputation)Right there with Babe (731 reputation)Right there with Babe (731 reputation)Right there with Babe (731 reputation)Right there with Babe (731 reputation)

Group: General Forum Members
Points: 731 Visits: 211
The schema are in the main snapshotter scripts. This is only some sample reporting procs. The snapshotter procs (Util_BuildSpaceLog) have the DDL and data gathering DML. Look in the Related content section under the Releated Tags section on the right sidebar.

One or the other, depending on whether you have sysadmin or just have dbo rights:
(The schema is the same for both for portability/upgradability but the DML won't populate the buffer cache columns in the dbo version because that data requires sysadmin)

The Automated DBA: Space Usage Snapshotter (sysadmin; central DB)
The Automated DBA: Space Usage Snapshotter Lite (non-sysadmin dbo)

Put a call to the snapshotter (Util_BuildSpaceLog) in a job. get some data for a few days, then run these reports and make up more reports of your own.

Oh if you use SSRS you can make SSRS do the running aggregates and differences/growth, making the T-SQL simpler and improving performance (T-SQL won't do well with running aggregates until SQL 2011; or whatever is after SQL 2008 R2), but of course the end user won't be able to copy-and-paste unless he were to export to excel (extra step, especially if RDPing for some reason to get the report)



Iwas Bornready
Iwas Bornready
SSCrazy Eights
SSCrazy Eights (9.7K reputation)SSCrazy Eights (9.7K reputation)SSCrazy Eights (9.7K reputation)SSCrazy Eights (9.7K reputation)SSCrazy Eights (9.7K reputation)SSCrazy Eights (9.7K reputation)SSCrazy Eights (9.7K reputation)SSCrazy Eights (9.7K reputation)

Group: General Forum Members
Points: 9688 Visits: 885
Thanks for the script.
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