Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / DB Engine / SQL Server / March 2008

Tip: Looking for answers? Try searching our database.

Private Profile for Database Mail

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rubens - 16 Mar 2008 19:39 GMT
I am trying to create a Private Profile for Database Mail, however there are no accounts available for me to select.  I can and have successfully sent mail from a public profile containing 2 different accounts, so I know I have it working.

How can I create a private profile?

Also, I want to confirm I understand the difference between the two options.  A public profile allows mail to be sent by any account in any SQL instance that might be installed, correct?  Also from what I understand, a private profile allows you to restrict which accounts have access to send from a particular database mail profile, correct?

Thank-you,
Rubens
Rubens - 16 Mar 2008 20:08 GMT
Ok, I figured out how to create a private profile, looks like you need to add users to the DatabaseMailUserRole in msdb to create a private profile.  I've now got this working.  However, both of these accounts are sysadmins on the box I am testing on.  Why do you still need to add a sysadmin to this msdb role?  I would assume something like that is granted by default to sysadmins, but I guess I know what happens when I assume... .

So can someone please answer my questions below in red?

Thanks,
 I am trying to create a Private Profile for Database Mail, however there are no accounts available for me to select.  I can and have successfully sent mail from a public profile containing 2 different accounts, so I know I have it working.

 How can I create a private profile?

 Also, I want to confirm I understand the difference between the two options.  A public profile allows mail to be sent by any account in any SQL instance that might be installed, correct?  Also from what I understand, a private profile allows you to restrict which accounts have access to send from a particular database mail profile, correct?

 Thank-you,
 Rubens
Tibor Karaszi - 16 Mar 2008 21:16 GMT
Yes, that is how I understand it to work With the addition that having access to the mail profile
isn't enough. You also need to be a member of the  DatabaseMailUserRole (for which you need a user
in msdb).

Signature

Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi

Ok, I figured out how to create a private profile, looks like you need to add users to the
DatabaseMailUserRole in msdb to create a private profile.  I've now got this working.  However, both
of these accounts are sysadmins on the box I am testing on.  Why do you still need to add a sysadmin
to this msdb role?  I would assume something like that is granted by default to sysadmins, but I
guess I know what happens when I assume... .

So can someone please answer my questions below in red?

Thanks,
Rubens
 "Rubens" <rubensrose@hotmail.com> wrote in message news:O0v0cV5hIHA.536@TK2MSFTNGP06.phx.gbl...
 I am trying to create a Private Profile for Database Mail, however there are no accounts available
for me to select.  I can and have successfully sent mail from a public profile containing 2
different accounts, so I know I have it working.

 How can I create a private profile?

 Also, I want to confirm I understand the difference between the two options.  A public profile
allows mail to be sent by any account in any SQL instance that might be installed, correct?  Also
from what I understand, a private profile allows you to restrict which accounts have access to send
from a particular database mail profile, correct?

 Thank-you,
 Rubens
Rubens - 17 Mar 2008 01:06 GMT
Great, thank-you Tibor.

Rubens

> Yes, that is how I understand it to work With the addition that having
> access to the mail profile isn't enough. You also need to be a member of
[quoted text clipped - 28 lines]
>  Thank-you,
>  Rubens
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.