INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

SQLServerAgent Error: Request to run job "jobname" (from User xxxx\aaaa) refused because t

SQLServerAgent Error: Request to run job "jobname" (from User xxxx\aaaa) refused because t

SQLServerAgent Error: Request to run job "jobname" (from User xxxx\aaaa) refused because t

(OP)
Hi, I've attached a screen shot of the error log from a SQL Server. I have a job that runs fine from Business Management Studio and from within SQL, but when I run it through the job agent I get an error. Looking at this log, is the error a critical error? Does the job still complete what it is meant to. I'm importing data from a proprietary database dealing with a tax database so it's hard to tell if the data in SQL has been updated, there not have been any changes in the source database.
Thanks,
Michael Kohler

RE: SQLServerAgent Error: Request to run job "jobname" (from User xxxx\aaaa) refused because t

Hi Michael

To my understanding, your job fails when it tries to send a message.
First ensure that your Messenger configurations is correct and well tested.

Use the below query to test it on Management Studio:\

EXEC msdb.dbo.sp_send_dbmail
@profile_name='Your Prifile Name',
@recipients='CellNumber',
@subject='Subject',
@body = 'Server Job: Load Succesfull'

You can also Configure your SMTP Server for emails.

I suggest that you modify your package to have logging tasks (Execute SQL Task), the first one will just
send a string to a table that says "The load/Update has started", then follows your main Data Flow Task to do the job,
then you add the second logging task to send a string in the same table to say "The load/Update has completed".
This will help you to answer the questions you have.

Regards

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close