SQL 2008 Job Notification Email Fails When Running SQLCMD Files

I am using SQLCMD batch files in jobs that move data between different SQL 2008 instances. My job notifications for all other jobs work, but for these I can't even get the notification that the job completed to send. Initially the job would not even show as failed even though the log file had errors in it. I added in the -b -V 1  switches and now the job will show as failed if it there is an error in the SQLCMD tasks. But still no notifications. Anyone have any experience with this?
creiglowlAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Raja Jegan RSQL Server DBA & Architect, EE Solution GuideCommented:
Not exactly like this..
Check whethe the job is running correctly and finishes on time..
Try applying SP1 for SQL Server 2008 and check out.

Also try recreating the job after deleting it once to confirm whether you are obtaining the same error or not..
0
creiglowlAuthor Commented:
Problem was that the particular instance running the job hadn't had it's mail profile for the alert system enabled. All other alerts that were being sent for jobs under this instance were generated from within the processes themselves and not by the alert system so it only looked like the alert system was sending messages.

Enabled the alert system profile on this SQL instance. Restarted SQL Agent.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2008

From novice to tech pro — start learning today.