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

Report Script... Expand / Collapse
Author
Message
Posted Wednesday, January 23, 2008 4:44 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Tuesday, October 7, 2014 4:53 AM
Points: 186, Visits: 818
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.

;)
Regards,
Jorge Mendes



  Post Attachments 
generate_monthly_report.txt (38 views, 40.05 KB)
Post #446339
Posted Thursday, January 24, 2008 4:22 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 11:21 AM
Points: 5,584, Visits: 6,379
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 Administrator

Webpage: http://www.BrandieTarvin.net
LiveJournal Blog: http://brandietarvin.livejournal.com/
On LinkedIn!, Google+, and Twitter.

Freelance Writer: Shadowrun
Latchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.
Post #446827
Posted Thursday, January 24, 2008 4:50 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Tuesday, October 7, 2014 4:53 AM
Points: 186, Visits: 818
Thanks Brandie.

Regards,
Jorge Mendes
Post #446835
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse