I have a job set up on SQL Server 7 whose owner is set to be the NT account which runs the SQL Server service.
I have a stored procedure which runs this job (using sp_start_job).
I have an access 2000 db which calls this sp (exec sp_start_job @job_name='TestJob').
The sp & consequently the job are run with no errors from access when I am logged in.
However, when another user is logged in I get an error message :
This is obviously related to permissions, but what am I doing wrong?
I know I can work around this by having the sp call a batch file which starts the job via isql, but there must be an easier way!!
What must I do to allow a regular user to run sp_start_job from a stored procedure?
I have a stored procedure which runs this job (using sp_start_job).
I have an access 2000 db which calls this sp (exec sp_start_job @job_name='TestJob').
The sp & consequently the job are run with no errors from access when I am logged in.
However, when another user is logged in I get an error message :
Code:
[Microsoft][ODBC SQL Server Driver][SQl Server]The specified @job_name(‘TestJob’) does not exist. (#14262)
This is obviously related to permissions, but what am I doing wrong?
I know I can work around this by having the sp call a batch file which starts the job via isql, but there must be an easier way!!
What must I do to allow a regular user to run sp_start_job from a stored procedure?