Viewing 11 posts - 1 through 11 (of 11 total)
Dug further and found this error:
The server principal "xxxx" is not able to access the database "yyyy" under the current security context.
Where xxxx is the SQL Server Agent account. Added...
June 24, 2013 at 10:57 am
Changed both server and agent to run as Network Service. Same results. Changed both server and agent to run under same network account name & password. Same results.
Thank you.
June 21, 2013 at 10:11 am
This post was a reply to your post:
Maybe - when email is sent successfully from management studio the last_mod_user entry in sysmail_log is NT AUTHORITY\NETWORK SERVICE and when it fails...
June 20, 2013 at 11:12 pm
Maybe - when email is sent successfully from management studio the last_mod_user entry in sysmail_log is NT AUTHORITY\NETWORK SERVICE and when it fails after invoking sql agent job that entry...
June 20, 2013 at 10:36 pm
the sproc executes fine & sends the email with the attachment when called from management studio so I would say the sproc and the call to sp_send_dbmail within it are...
June 20, 2013 at 10:33 pm
and BTW - when the sproc is executed from management studio & not called as sql server agent job, it works. Weird.
June 20, 2013 at 10:04 pm
Tried both suggestions, first @append_query_error = 1, same result. Then changed file name to @query_attachment_filename = NULL and got the error message added twice to sysmail_log after executing the job....
June 20, 2013 at 9:57 pm
All latest patches have been applied. This is a fresh vm just put online in the last 2-3 weeks. All other services are working with no issues.
June 20, 2013 at 5:42 pm
Thanks for your effort! No, it is the opposite. It has been working flawlessly for years with the same setup on 2005. We are migrating to 2008 (finally) and we...
June 20, 2013 at 5:21 pm
All emails come from the same email address and there is only 1 profile each set up on the 2005 and 2008 machines. Anonymous authentication is used in the Database...
June 20, 2013 at 4:39 pm
Thank you for your reply. If that is the issue then it is somewhat mystifying because the same exchange server currently receives the email from Database Mail on SQL Server...
June 20, 2013 at 4:22 pm
Viewing 11 posts - 1 through 11 (of 11 total)