sqlmail

difference xp_sendmail and sp_send_dbmail proc

我怕爱的太早我们不能终老 提交于 2019-12-22 05:22:02
问题 Can I ask what is the difference between xp_sendmail and sp_send_dbmail proc? They are both send e-mail message, which may include a query result set attachment, to the specified recipients..... What is the difference? 回答1: xp_sendmail requires a MAPI client installed, such as Outlook, on the server. This is the only option for SQL Server 2000 and before. sp_send_dbmail is a simple SMTP solution, added for SQL Server 2005+ sp_send_dbmail is by far better. 回答2: Another difference between the

difference xp_sendmail and sp_send_dbmail proc

喜欢而已 提交于 2019-12-05 07:27:17
Can I ask what is the difference between xp_sendmail and sp_send_dbmail proc? They are both send e-mail message, which may include a query result set attachment, to the specified recipients..... What is the difference? xp_sendmail requires a MAPI client installed, such as Outlook, on the server. This is the only option for SQL Server 2000 and before. sp_send_dbmail is a simple SMTP solution, added for SQL Server 2005+ sp_send_dbmail is by far better. Another difference between the two is that email message sent using sp_send_dbmail() will be rolled back (not sent) if the transaction is rolled