Alert not generate email on Procedure fail error












0















enter image description hereI have configure Database mail and alert, test email is sending successfully to following recipient who add in OPERATORS but I have create alert on EXECUTE PROCEDURE (exec sp_insert_shift_A_data; )which are not sending email on Procedure fail error, I have choose SEVERITY is "016 Miscellaneous user error" and CHECK on raise alert when message contains and MESSAGE TEXT given "Violation of UNIQUE KEY constraint". Please answer me is there any mistake in configuration or How it is configure? Why are not sending email on Procedure fail error while procedure fail to execute?









share

























  • Procedure fail to execute error is given below:

    – safi qadri
    8 mins ago











  • Executing the query "use LoomMonitoringSystem exec sp_insert_shift_A..." failed with the following error: "An error was raised during trigger execution. The batch has been aborted and the user transaction, if any, has been rolled back. Changed database context to 'LoomMonitoringSystem'. 2019-03-08 07:30:00 2019-03-08 14:59:59

    – safi qadri
    7 mins ago











  • INSERTING DATA Error on line 148 Violation of UNIQUE KEY constraint 'uc_loom_data'. Cannot insert duplicate key in object 'dbo.loom_data'. The duplicate key value is (561, 23, Mar 8 2019 7:30AM).". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

    – safi qadri
    7 mins ago
















0















enter image description hereI have configure Database mail and alert, test email is sending successfully to following recipient who add in OPERATORS but I have create alert on EXECUTE PROCEDURE (exec sp_insert_shift_A_data; )which are not sending email on Procedure fail error, I have choose SEVERITY is "016 Miscellaneous user error" and CHECK on raise alert when message contains and MESSAGE TEXT given "Violation of UNIQUE KEY constraint". Please answer me is there any mistake in configuration or How it is configure? Why are not sending email on Procedure fail error while procedure fail to execute?









share

























  • Procedure fail to execute error is given below:

    – safi qadri
    8 mins ago











  • Executing the query "use LoomMonitoringSystem exec sp_insert_shift_A..." failed with the following error: "An error was raised during trigger execution. The batch has been aborted and the user transaction, if any, has been rolled back. Changed database context to 'LoomMonitoringSystem'. 2019-03-08 07:30:00 2019-03-08 14:59:59

    – safi qadri
    7 mins ago











  • INSERTING DATA Error on line 148 Violation of UNIQUE KEY constraint 'uc_loom_data'. Cannot insert duplicate key in object 'dbo.loom_data'. The duplicate key value is (561, 23, Mar 8 2019 7:30AM).". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

    – safi qadri
    7 mins ago














0












0








0








enter image description hereI have configure Database mail and alert, test email is sending successfully to following recipient who add in OPERATORS but I have create alert on EXECUTE PROCEDURE (exec sp_insert_shift_A_data; )which are not sending email on Procedure fail error, I have choose SEVERITY is "016 Miscellaneous user error" and CHECK on raise alert when message contains and MESSAGE TEXT given "Violation of UNIQUE KEY constraint". Please answer me is there any mistake in configuration or How it is configure? Why are not sending email on Procedure fail error while procedure fail to execute?









share
















enter image description hereI have configure Database mail and alert, test email is sending successfully to following recipient who add in OPERATORS but I have create alert on EXECUTE PROCEDURE (exec sp_insert_shift_A_data; )which are not sending email on Procedure fail error, I have choose SEVERITY is "016 Miscellaneous user error" and CHECK on raise alert when message contains and MESSAGE TEXT given "Violation of UNIQUE KEY constraint". Please answer me is there any mistake in configuration or How it is configure? Why are not sending email on Procedure fail error while procedure fail to execute?







database-mail





share














share












share



share








edited 1 min ago







safi qadri

















asked 9 mins ago









safi qadrisafi qadri

213




213













  • Procedure fail to execute error is given below:

    – safi qadri
    8 mins ago











  • Executing the query "use LoomMonitoringSystem exec sp_insert_shift_A..." failed with the following error: "An error was raised during trigger execution. The batch has been aborted and the user transaction, if any, has been rolled back. Changed database context to 'LoomMonitoringSystem'. 2019-03-08 07:30:00 2019-03-08 14:59:59

    – safi qadri
    7 mins ago











  • INSERTING DATA Error on line 148 Violation of UNIQUE KEY constraint 'uc_loom_data'. Cannot insert duplicate key in object 'dbo.loom_data'. The duplicate key value is (561, 23, Mar 8 2019 7:30AM).". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

    – safi qadri
    7 mins ago



















  • Procedure fail to execute error is given below:

    – safi qadri
    8 mins ago











  • Executing the query "use LoomMonitoringSystem exec sp_insert_shift_A..." failed with the following error: "An error was raised during trigger execution. The batch has been aborted and the user transaction, if any, has been rolled back. Changed database context to 'LoomMonitoringSystem'. 2019-03-08 07:30:00 2019-03-08 14:59:59

    – safi qadri
    7 mins ago











  • INSERTING DATA Error on line 148 Violation of UNIQUE KEY constraint 'uc_loom_data'. Cannot insert duplicate key in object 'dbo.loom_data'. The duplicate key value is (561, 23, Mar 8 2019 7:30AM).". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

    – safi qadri
    7 mins ago

















Procedure fail to execute error is given below:

– safi qadri
8 mins ago





Procedure fail to execute error is given below:

– safi qadri
8 mins ago













Executing the query "use LoomMonitoringSystem exec sp_insert_shift_A..." failed with the following error: "An error was raised during trigger execution. The batch has been aborted and the user transaction, if any, has been rolled back. Changed database context to 'LoomMonitoringSystem'. 2019-03-08 07:30:00 2019-03-08 14:59:59

– safi qadri
7 mins ago





Executing the query "use LoomMonitoringSystem exec sp_insert_shift_A..." failed with the following error: "An error was raised during trigger execution. The batch has been aborted and the user transaction, if any, has been rolled back. Changed database context to 'LoomMonitoringSystem'. 2019-03-08 07:30:00 2019-03-08 14:59:59

– safi qadri
7 mins ago













INSERTING DATA Error on line 148 Violation of UNIQUE KEY constraint 'uc_loom_data'. Cannot insert duplicate key in object 'dbo.loom_data'. The duplicate key value is (561, 23, Mar 8 2019 7:30AM).". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

– safi qadri
7 mins ago





INSERTING DATA Error on line 148 Violation of UNIQUE KEY constraint 'uc_loom_data'. Cannot insert duplicate key in object 'dbo.loom_data'. The duplicate key value is (561, 23, Mar 8 2019 7:30AM).". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

– safi qadri
7 mins ago










0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "182"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f231722%2falert-not-generate-email-on-procedure-fail-error%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Database Administrators Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f231722%2falert-not-generate-email-on-procedure-fail-error%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Liste der Baudenkmale in Friedland (Mecklenburg)

Single-Malt-Whisky

Czorneboh