Link to home
Start Free TrialLog in
Avatar of 66chawger
66chawgerFlag for United States of America

asked on

TSQL Compare File Date To Current Date

In SQL Agent Job Step, I want to compare the date of a text file that resides on a different server to the current system date.  If the dates don't match then will send DBMail notification.

I have tried various system sp's, XP CMD, batch files, powershell, etc.  This should be simple.
SOLUTION
Avatar of x-men
x-men
Flag of Portugal image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of 66chawger

ASKER

I tried both of these with success.  Ultimately, I created a web service for re-use and for my purposes called from a stored proc.