IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New sp_start_job may do the trick
EXEC sp_start_job @job_name = 'Test Task'

But I'm not sure about how user privileges limit the ability to invoke the procedure.
New Thanks
I'll try it tomorrow.
I assume I would have to put this in some type of sql script.

Guess I can now use SQSH!
New Probably the best way...
...is to wrap it in a stored procedure created from the administrator account and grant execute privilige to that stored procedure to the various accounts you want. The accounts won't be able to start the Task directly, but they can call a stored proc that will do the chore:

CREATE PROC RunTask As
EXEC msdb..sp_start_job @job_name = 'Test Task'
GO

GRANT EXECUTE ON RunTask TO MyMinions
GO

-- MyMinions then run
EXEC RunTask
     SQL/Server / SQLAGENT / Running by hand - (broomberg) - (12)
         One possible hint - (kmself) - (8)
             Don't see how it applies - (broomberg)
             Works - (broomberg) - (6)
                 OK, too - (kmself) - (5)
                     OT: how is DOMAIN\\USER kind of login supported in SAMBA - (Arkadiy) - (4)
                         RTFM - (deSitter) - (3)
                             Consider winbind. -NT - (pwhysall)
                             Client. Client. Client. Damn it. -NT - (Arkadiy) - (1)
                                 As Petah said... - (tseliot)
         sp_start_job may do the trick - (ChrisR) - (2)
             Thanks - (broomberg) - (1)
                 Probably the best way... - (ChrisR)

And she wasn't kidding, either, 'cause in came the biggest, meanest looking haddock I'd ever seen come down the pike. He was covered with mussels.
78 ms