Snippets of the day – Wednesday, October 23, 2013

Posted on Posted in Snippets


Here are some of the most recently published snippets!

Monitor your website from SQL Server

This code should be added as t-sql step of the job and schedule it for every 5 min or as per your requirement it will monitor the url given by you and will send the mail when the application is down. It will also take care of certification errors(Ignore the Errors).It will be very useful and also does not require any third party stuff.Here I added few steps to enable ole automation to be enabled temperorly and again turning it off if you disabled that option for security reasons.


Open the snippet

Author:    cghersi

New try-catch block syntax

Starting from java 7, try catch blocks can be written in a more strict way…

Open the snippet

Author:    cghersi @ Thotpot alumni

Leave a Reply

Your email address will not be published. Required fields are marked *