asked on
WHILE @@FETCH_STATUS = 0
BEGIN
--Sending Mail
EXEC msdb.dbo.sp_send_dbmail @recipients = @recipientemail,
@subject = 'Your '+@monthlyaccountdescription+' Program at the Wash'
@body = '<p>Dear Neil,</p>
<p>Your credit card ending with an expiration date of DDYY has been charged in the amount of $49.95 for the Program.</p>
<p>Thank you for your business.</p>',
@body_format = 'HTML';
FETCH NEXT FROM Mail_Cursor
INTO @recipients, @subject, @body;
END;
Microsoft SQL Server is a suite of relational database management system (RDBMS) products providing multi-user database access functionality.SQL Server is available in multiple versions, typically identified by release year, and versions are subdivided into editions to distinguish between product functionality. Component services include integration (SSIS), reporting (SSRS), analysis (SSAS), data quality, master data, T-SQL and performance tuning.
TRUSTED BY
Open in new window