Hi
I want to execute two queries at the same time if one fails the other must discard. I tried this in a simple way i want if there is any efficient way to do it.
code is in attached file.
Thanks
Know the answer? Post it. Somebody with the same question will find it here.
Amitesh VermaRank #2,535 · 552 reputationPosted Aug 3, 2015, 1:57 AM EDT
alert("Success");
})
.error(function (response) {
alert("error");
})
Manas MohapatraRank #182 · 13.2K reputationPosted Aug 3, 2015, 2:20 AM EDT
Raja TRank #685 · 3.5K reputationPosted Aug 3, 2015, 2:20 AM EDT
Ifra Shaheen22 reputationPosted Aug 4, 2015, 9:28 AM EDT
Jignesh TrivediRank #16 · 50.3K reputationPosted Aug 4, 2015, 7:48 PM EDT
Hi,
you have two choice, either Pass both the query in single command with comma (;) separated or use transaction scope.
Raja TRank #685 · 3.5K reputationPosted Aug 4, 2015, 8:29 PM EDT
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Aug 4, 2015, 8:58 PM EDT
Ifra Shaheen22 reputationPosted Aug 6, 2015, 8:58 AM EDT
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Aug 6, 2015, 8:45 PM EDT
Narasimha Reddy ChennupalliRank #1,163 · 1.6K reputationPosted Aug 11, 2015, 2:29 AM EDT
Khan Abrar AhmedRank #778 · 3K reputationPosted Aug 11, 2015, 2:35 AM EDT
Ifra Shaheen22 reputationPosted Aug 16, 2015, 11:22 PM EDT
Raja TRank #685 · 3.5K reputationPosted Aug 16, 2015, 11:30 PM EDT
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Aug 16, 2015, 11:30 PM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts