August 6, 2014 at 5:03 am
on my sql 2014 server i can execute the following without issue:
EXEC msdb.dbo.sp_set_sqlagent_properties
@email_save_in_sent_folder=1,
@databasemail_profile=N'DB Alert'
[/codel]
On my 2008 R2 server this doesnt work though, and tells me the @databaseemail_profile parameter is not valid.
On my 2005 server the same action, when scripted tries to modify the registry.
When did this change to use @databaseemail_profile?
August 6, 2014 at 7:14 am
winston Smith (8/6/2014)
on my sql 2014 server i can execute the following without issue:
EXEC msdb.dbo.sp_set_sqlagent_properties
@email_save_in_sent_folder=1,
@databasemail_profile=N'DB Alert'
[/codel]
On my 2008 R2 server this doesnt work though, and tells me the @databaseemail_profile parameter is not valid.
....
This doen't sound like the procedure has changed, but more like your mail profile on the SQL2008 instance has a different name or doesn't exist.
August 6, 2014 at 8:02 am
July 8, 2015 at 10:37 am
Dear Folks,
I did more research on this.
For SQL 2008 R2 and below, use "@email_profile" instead of "@databasemail_profile", but from sql 2012 onwards +, you can use "@databasemail_profile".
Let me know if this works.
Thanks.
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy