SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


msdb.dbo.sp_send_dbmail Not working with SQL JOB


msdb.dbo.sp_send_dbmail Not working with SQL JOB

Author
Message
prakashdotc
prakashdotc
Old Hand
Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)

Group: General Forum Members
Points: 309 Visits: 66
Hi All,

i have a SP, which will do some update operations and send mail to respective users

to send mail i'm using msdb.dbo.sp_send_dbmail

when i execute this SP Query Analyzer it works fine and sends mail,

but when i incorporate this SP in SQL Agent as a nightly build process it's not working and doesn't sends mail

but executes successfully.

What's the issue

thanks in advance

Prakash.C
prakashdotc
prakashdotc
Old Hand
Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)Old Hand (309 reputation)

Group: General Forum Members
Points: 309 Visits: 66
Hi all,

no one has encountered such a problem yet....?
NickDBA
NickDBA
SSC Eights!
SSC Eights! (845 reputation)SSC Eights! (845 reputation)SSC Eights! (845 reputation)SSC Eights! (845 reputation)SSC Eights! (845 reputation)SSC Eights! (845 reputation)SSC Eights! (845 reputation)SSC Eights! (845 reputation)

Group: General Forum Members
Points: 845 Visits: 938
Can you fire the Job in day time and run a trace at the same time to see what's happening?
crazy4sql
crazy4sql
SSCarpal Tunnel
SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)

Group: General Forum Members
Points: 4217 Visits: 4514
have you configured the correct operator in notification tab of sql job?

----------
Ashish
Bhuvnesh
Bhuvnesh
SSChampion
SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)

Group: General Forum Members
Points: 13314 Visits: 4077
prakashdotc (9/2/2010)
when i incorporate this SP in SQL Agent as a nightly build process it's not working and doesn't sends mail
Are you using the correct profile/account name ? i am sure not

-------Bhuvnesh----------
I work only to learn Sql Server...though my company pays me for getting their stuff done;-)
Kerry Bossingham
Kerry Bossingham
Grasshopper
Grasshopper (13 reputation)Grasshopper (13 reputation)Grasshopper (13 reputation)Grasshopper (13 reputation)Grasshopper (13 reputation)Grasshopper (13 reputation)Grasshopper (13 reputation)Grasshopper (13 reputation)

Group: General Forum Members
Points: 13 Visits: 207
My DBMail stopped working on 2 production servers after I upgraded to SQL 2012 SP1. It doesn't work from the query window or from an SQL job. It does work on the 2 corresponding test servers!? Same service pack was applied to all 4. Any ideas?
RonKyle
RonKyle
SSCertifiable
SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)

Group: General Forum Members
Points: 7018 Visits: 3621
This won't be helpful per se, but recently I have an extremely difficult time trying to get the dbmail to work. I'd followed all of the steps, and had no issues on all but one server, unfortunately a production one. I looked through all the posts, and tried an uncounted number of things. One evening, it simply started working. One day I expect it will stop working, and I will have no idea why. Just maddening!

Good luck.



Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search