I have two SQL Server machines:
SqlServer-1SqlServer-2
I have a job created on SqlServer-1 named RunExeFile.
SqlServer-2 can access SqlServer-1 through a linked server.
Can I start the job RunExeFile from a stored procedure on SqlServer-2 ?
Yes, you can.
You can run this in your stored procedure on
SqlServer-2against linked ServerLinkedServer1:You need to configure RPC and ensure the calling security context is set: