I have a stored procedure that is called from dbr.editable. The column being changed is always successfully updated, however when I add dbr.mail commands at the end the column changes to "dbr.mail" after the update (which still runs) and the email never gets sent...
IF object_id('sp_DBR_activejobsshop_edit_salesnotes','P') IS NOT NULL
DROP PROCEDURE [sp_DBR_activejobsshop_edit_salesnotes]
GO
CREATE PROCEDURE sp_DBR_activejobsshop_edit_salesnotes
@inJobNum int,
@inValue varchar(255)
AS
BEGIN
update jobcosting.dbo.Master
set
[Sales Notes] = @inValue
where [Job #] = @inJobNum;
select 'dbr.mail';
select 'dbr.mail.recipient', 'XXXX@XXXXX.COM', 'Jon Snow';
select '', '', 'Sales Notes Update',
'The new entry is: ' + @inValue;
END
GO