I have a query select (current date - date(last_refresh_timestam
p)) from tbname where some condition
I want the o/p of the query to be assigned to some variable in a batch script,check whether the result of the query>1 then issue net stop svcename ,I need to run it as a batch file.Any ideas on how to accomplish this.
Start Free Trial