May 7, 2016 at 4:41 am
Hi All,
I have one SQL Job, which executing one .BAT file, when I am running this SQL job it keep going on, however as per my target it should not take more than 1 minute.
Now I want to see progress with .BAT file, problem here how I can see what running from .BAT side.
Appreciate for your quick response.
Thanks.
May 7, 2016 at 8:35 am
that's a tough one, since the bat could be doing anything, and it's outside of SQL server.
you could open up Task Manager on the server, but the real question is what is the bat file doing? if it calls an application, and the application renders a gui, or raises a popup/confirm, it would hang forever.
we could probably identify the issue if you show us what the bat file is doing.
also there might be more than one way to do what the bat file is doing, so we might offer suggestions.
Lowell
May 7, 2016 at 9:00 am
Well .BAT file copying files from one folder to other folder using robocopy command utility
May 7, 2016 at 9:16 am
wwwnlc111 (5/7/2016)
Well .BAT file copying files from one folder to other folder using robocopy command utility
are you saying that the SQL agent job fails or is just slow?
could be a permissions issues on the folders......when you run it manually your credentials are used but when it runs automatically by SQL Agent, the agent's credentials and permissions are used.
________________________________________________________________
you can lead a user to data....but you cannot make them think
and remember....every day is a school day
May 7, 2016 at 9:30 am
Manually it is working perfectly fine, actually my destination is network shared location , even SQL job working perfectly fine as destination local driver but with network location keep running and not able to see what's wrong
May 7, 2016 at 9:35 am
wwwnlc111 (5/7/2016)
Manually it is working perfectly fine, actually my destination is network shared location , even SQL job working perfectly fine as destination local driver but with network location keep running and not able to see what's wrong
so have you confirmed and verified that SQL agent has permissions on your network folder?
________________________________________________________________
you can lead a user to data....but you cannot make them think
and remember....every day is a school day
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply