Advertisement
Advertisement
| 04.16.2008 at 02:28PM PDT, ID: 23329000 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: |
ALTER PROCEDURE [dbo].[sendMail]
@recipient varchar(1000), @subject varchar(1000), @message varchar(2000), @mailTP char(4), @status bit OUTPUT, @err varchar(1000) OUTPUT
AS
--declare vars to hold data
DECLARE @mailitem_id int
SET @status = 1
EXEC msdb.dbo.sp_send_dbmail
@profile_name = 'DB_Mailer',
@recipients = @recipient,
@body = @message,
@subject = @subject,
@body_format = @mailTP,
@mailitem_id = @mailitem_id OUTPUT;
IF(SELECT COUNT(*) FROM msdb.dbo.sysmail_event_log WHERE mailitem_id = @mailitem_id) <> 0
SELECT @err = [description] FROM msdb.dbo.sysmail_event_log WHERE mailitem_id = @mailitem_id
SET @status = 0
|