Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
8Activity
0 of .
Results for:
No results containing your search query
P. 1
Configuring Database Mail

Configuring Database Mail

Ratings:

4.0

(2)
|Views: 2,357 |Likes:
Published by cbrzana
SQL Server 2005 Guide: Configuring Database Mail
SQL Server 2005 Guide: Configuring Database Mail

More info:

Published by: cbrzana on Aug 16, 2007
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

09/28/2010

pdf

text

original

 
ProProfs.com
[CONFIGURING DATABASE MAIL IN SQL SERVER]
 
Configuring Database Mail
Database Mail allows you to send messages from SQL Server2005. Database Mail replaces previousversion of SQL Server’s mail agent, SQL Mail. New features found in Database Mail include:
 
Support for multiple email profiles/accounts
 
Asynchronous messaging
 
Cluster-awareness
 
64-bit compatibility
 
Improved security
 
Mail auditing
 
Usage of SMTP (eliminates need for Extended MAPI)
Setting up Database Mail
 First, you must enable Database Mail (it is disabled bydefault):1.
 
On the machine running SQL Server 2005, openSQL Server Surface Area Configuration.2.
 
Select “Surface Area Configuration for Features”.3.
 
Once the dialog box opens, select the SQL Server2005 instance you want to configure, and thenexpand the Database Engine Node.4.
 
Select the Database Mail Node.5.
 
Check the “Enable Database MailStored Procedures” checkbox.6.
 
Click “Apply” and then “OK”. Youare now done with Surface AreaConfiguration.
 
ProProfs.com
[CONFIGURING DATABASE MAIL IN SQL SERVER]
 
As an alternative to enabling Database Mail, you can execute T-SQL code, or more specifically, a storedprocedure. Ensure you are logged in as a sysadmin, and run:To disable Database Mail, run the following code:The second step in configuring Database Mail is to ensure that Service Broker is enabled in the
msdb
 database (enabled by default). To enable this, stop the SQL Server Agent and run the following:The third step is necessary only if the SMTP server requires authentication. If this is the case, you needto ensure that the SQL Server service (default) account credentials can access the server.
Database Mail Architecture
There are four components to Database Mail:1.
 
Configuration components
: includes two sub-components:a.
 
Database Mail account
, which includes the SMTP server name, authentication type, ande-mail address.b.
 
Database Mail profile
, which is a collection of Mail accounts. Used by applications tosend e-mail to profiles (and accounts can later be added/deleted without code re-write).2.
 
Messaging
: the Database Mail host database (
msdb
)
 
ProProfs.com
[CONFIGURING DATABASE MAIL IN SQL SERVER]
 
3.
 
Database Mail executable
: DatabaseMail90.exe, a separate executable from SQL Server tominimize impact. Connects to the database engine via the SQL Server service accountcredentials.4.
 
Logging and Auditing
: Log information is stored in the host database (
msdb
). Query the
sysmail_event_log
view to see the log.
Using the Database Mail Configuration Wizard
 This wizard allows you to perform actions including accountmanagement, profile setup, and security.1.
 
Expand the Management Node, right click DatabaseMail, and choose “configure Database Mail”.2.
 
This will give you the welcome screen for theDatabase Mail Configuration Wizard. Click Next, andselect “Set up Database Mail by performing thefollowing tasks” is selected (which is by default).Click Next.3.
 
Enter the Profile name, a brief description, and then“Add” a new SMTP account.4.
 
Fill in the Account information, clickokay, and review your settings.5.
 
Specify database users or roles thatcan access the database profile.Public Profiles can be accessed by allusers; Private Profiles can only beaccessed by a specific user of a mail-host database.6.
 
You now have Database Mailconfigured!

Activity (8)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
santoshswami liked this
egor77 liked this
Joseph Warero liked this
Anitkumar Patel liked this
jack11001 liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->