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


Report Script...


Report Script...

Author
Message
JMSM
JMSM
SSC-Enthusiastic
SSC-Enthusiastic (190 reputation)SSC-Enthusiastic (190 reputation)SSC-Enthusiastic (190 reputation)SSC-Enthusiastic (190 reputation)SSC-Enthusiastic (190 reputation)SSC-Enthusiastic (190 reputation)SSC-Enthusiastic (190 reputation)SSC-Enthusiastic (190 reputation)

Group: General Forum Members
Points: 190 Visits: 966
Hello everybody,

Can anyone tell me or send me scripts that generate full information, that will be usefull to a database administrator can be proactive?
I've created one monthly report that i've attached in this question but this script is to old(you can see it on the part of that i check versions) and some points i need to include in this script but i cant remember what should i've need to be careful.
Thanks again.

Wink
Regards,
Jorge Mendes
Attachments
generate_monthly_report.txt (41 views, 40.00 KB)
Brandie Tarvin
Brandie Tarvin
SSCertifiable
SSCertifiable (7.8K reputation)SSCertifiable (7.8K reputation)SSCertifiable (7.8K reputation)SSCertifiable (7.8K reputation)SSCertifiable (7.8K reputation)SSCertifiable (7.8K reputation)SSCertifiable (7.8K reputation)SSCertifiable (7.8K reputation)

Group: General Forum Members
Points: 7804 Visits: 8745
I can't give you actual monitoring scripts because I didn't write some of them and I don't have permissions to hand the ones I didn't create. Also, you can learn more by writing them yourself. I can, however, tell you where you can look for ideas.

Hard Drive space monitoring - Send out an email to yourself when your HD space falls below X percent. Here's a link to an article on it by Greg Larsen. www.databasejournal.com/features/mssql/article.php/3080501

Cluster Checking - Notifies you if your cluster failed over to a node that it should be on. Use the SERVERPROPERTY('ComputerNamePhysicalNetBIOS') function to double-check your server name. If the name is supposed to be ServerA, but is ServerB, send yourself an email / page telling you that the server is running on the incorrect node.

DB Growth History - Monitors your DB growth over long periods of time. We run this job weekly. Create a Table to hold DBName, CurrentSize, LastSize, the date of the check and the percentage of growth. Then use Master.dbo.sysdatabases and Master.dbo.sysaltfiles. You'll have to do some math to get your sizes in MB or GB. I believe the sizes in sysaltfiles are in KB.

And lastly, don't forget to set up SQL Server Performance Condition Alerts and an Operator with an email/pager so you can monitor preset events in SQL Server. Look up "Alerts" in Books Online.

Brandie Tarvin, MCITP Database AdministratorLiveJournal Blog: http://brandietarvin.livejournal.com/On LinkedIn!, Google+, and Twitter.Freelance Writer: ShadowrunLatchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.
JMSM
JMSM
SSC-Enthusiastic
SSC-Enthusiastic (190 reputation)SSC-Enthusiastic (190 reputation)SSC-Enthusiastic (190 reputation)SSC-Enthusiastic (190 reputation)SSC-Enthusiastic (190 reputation)SSC-Enthusiastic (190 reputation)SSC-Enthusiastic (190 reputation)SSC-Enthusiastic (190 reputation)

Group: General Forum Members
Points: 190 Visits: 966
Thanks Brandie.

Regards,
Jorge Mendes
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