SQL Clone
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in

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)

Monitor Any Linked Server From SQL 2005

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 no straight method to test excel linked server since the external procedure by SQL 2005 will say pass even the excel sheet is deleted from the path. So this script will help you to monitor Linked servers from SQL 2005 and i will also post a SQL 2000 version of this script later.

Also fine below the behaviour of excel sheet on different action and the test i have done on this script. Any enhancements/suggestions are always welcome!

Testing Done on Behaviour of Excel Linked Server When Excel sheet is used by some one [For General Understanding on Excel]

Testing Done using Script with Status

Note: Send Mail section can be changed/modified as per your environment!



Total article views: 3103 | Views in the last 30 days: 2
Related Articles

Insert Local Excel data sheet into SQL(remote) Server

Insert Local Excel data sheet into SQL(remote) Server


how to convert datetime excel sheet to sqlserver datetime

converting datetime from excel sheet to sql server


How to export sql server data into multiple excel sheets ?

export from sql server 2000/s2005 to excel sheet


Export data from a sql table to excel sheet

Export data from a sql table to excel sheet