mutley1
MIS
- Jul 24, 2003
- 909
Hi all,
I want to create a stored procedure that would check a server for the existance of a file (blah.bin), and if it does exist, use xp_sendmail to notify users.
I guess this can be done using VB and DTS but would prefer to use a stored proc.
The file is on a non-SQL server and could exist in a few different folders (3 folders, each with multiple subdirectories).
Server BLAH\D:\Indexes\Db1\DB\<any number of subdierctories>\file.bin
Server BLAH\D:\Indexes\Db2\DB\<any number of subdierctories>\file.bin
Server BLAH\D:\Indexes\Db3\DB\<any number of subdierctories>\file.bin
The file could exist in either or all of the DB1, 2, 3<any subdirectories. I want to try to find out if it exists, if so, which directory and then mail that info to the user (it's basically trying to monitor an error flag and notify).
Is this possible ith TSQL or should I look at a VB route in DTS?
Thanks,
M.
I want to create a stored procedure that would check a server for the existance of a file (blah.bin), and if it does exist, use xp_sendmail to notify users.
I guess this can be done using VB and DTS but would prefer to use a stored proc.
The file is on a non-SQL server and could exist in a few different folders (3 folders, each with multiple subdirectories).
Server BLAH\D:\Indexes\Db1\DB\<any number of subdierctories>\file.bin
Server BLAH\D:\Indexes\Db2\DB\<any number of subdierctories>\file.bin
Server BLAH\D:\Indexes\Db3\DB\<any number of subdierctories>\file.bin
The file could exist in either or all of the DB1, 2, 3<any subdirectories. I want to try to find out if it exists, if so, which directory and then mail that info to the user (it's basically trying to monitor an error flag and notify).
Is this possible ith TSQL or should I look at a VB route in DTS?
Thanks,
M.