Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin.
Search for scripts directly from SSMS, and instantly access any saved scripts in your
SSC briefcase from the favorites tab.
Download now (direct download link)
Thank this author by sharing:
By Sakthivel Chidambaram,
DBA's often monitor Backups, Replication e.t.c manually or through some automation but there is one thing which needs to be monitored is linked server. Often there may be some issue in linked server and DBA's will not know till Application user raises issue. Also there is a straight method (sp_TestLinkedServer) to test linked servers in SQL 2005 will say pass even the Access is deleted from the path. So this script will help you to monitor Linked servers from SQL 2000 and i have posted another SQL 2005 version of this script.
Also fine below the test i have done on this script and options available to test linked servers.
The RED issues cannot be captured in SQL 2000 (No option to TRY/CATCH ???) and thus why it is good to monitor linked servers from SQL 2005.
In the above we cannot use sp_tableex since incase SQL server is not running or access denied etc then runtime error will come so only we are using sp_OA.
Any enhancements/suggestions are always welcome!
shrinked my ss2k5 log file by below option
Monitor Replication Using Scripts
SQL Server monitoring script
How to generate a script of specific options