Monday, March 5, 2012

Difference beween SQLMail and Database mail

Its very small but very important to know difference between these two features of SQL Server. The difference between Database Mail and SQLMail is very confusing sometime. I will try to explain this concept below -

Database mail is newly introduced concept in SQL Server 2005 and it is replacement of SQLMail of SQL Server earlier version.

Database Mail has many improvements over SQLMail. Database Mail is based on SMTP (Simple Mail Transfer Protocol) and also very fast and reliable where as SQLMail is based on MAPI (Messaging Application Programming Interface).

Database mail depends on Service Broker so this service must be enabled for Database Mail.

Database Mail can be encrypted for additional security.

SQLMail is lesser secure as it can encrypt the message as well anybody can use SMTP to send email. Additionally, for MAPI to be enabled for SQLMail it will require Outlook to be installed.All this leads to potential security threat to database server.

So its good if you are using SQLMail, but this is right time to upgrade to Database Mail.

If you want to use the old SQLMail you can enable it with these commands.

EXEC sp_configure 'SQL Mail XPs', 1
GO
RECONFIGURE
GO

Hope this helps

Enjoy

No comments: