Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 5123

Can not access network share using sql agent jobs

$
0
0
Am trying to access the network share using the batch file in Sql agent jobs, my command is

net use j: /Delete &  net use J: \\server_name\Share_name <Password> <Domain/username> /persistent:Yes

I can sucessfully run the above batch file when I run it mannully as administrator, when I include in a job it get sucess but connection not established. am getting the below message,

Executed as user: XXX . C:\Windows\system32>net use j: /Delete   & net use J: \\server_name\Share_name <Password> <Domain/username> /persistent:Yes  The network connection could not be found.    More help is available by typing NET HELPMSG 2250.The command completed successfully.  Process Exit Code 0.  The step succeeded.

Please help me to resolve the issue


Best Regards Moug


Viewing all articles
Browse latest Browse all 5123

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>