I have a database that saves the filepath of a certain file to a network drive. The problem I am experiencing is that it gives an error message that it could not connect to the server, and consequently stores that error message in the filepath column.
I'm aware that an AFTER INSERT trigger can catch that during the actual insertion of that record... but....
Is there a way to have some a query run automatically every hour (or whatever inrement I choose) to look for those filepath errors and then having it e-mailed autmatically with sp_send_dbmail?
Some one mentioned powershell scripting. I can't seem to find more information on how that would work with an SQL database.
-Nothing to see. Move along.