Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.
CREATE TRIGGER Food.AlertRequest ON Food.RequestMaster AFTER INSERT AS BEGIN -- SET NOCOUNT ON added to prevent extra result sets from -- interfering with SELECT statements. SET NOCOUNT ON; -- Insert statements for trigger here @squery = SELECT * from RequestMaster EXEC msdb.dbo.sp_send_dbmail @profile_name = DBMail, @recipients = 'email@example.com', @query = @squery, @subject = @message, @attach_query_result_as_file = 1 ; END GO
Join the community of 500,000 technology professionals and ask your questions.