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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Upendra Pratap ShahiPosted Aug 17, 2015, 3:30 AM
Raja TPosted Aug 17, 2015, 3:30 AM
Ifra ShaheenPosted Aug 17, 2015, 3:22 AM
Khan Abrar AhmedPosted Aug 11, 2015, 6:35 AM
Narasimha Reddy ChennupalliPosted Aug 11, 2015, 6:29 AM
Upendra Pratap ShahiPosted Aug 7, 2015, 12:45 AM
Ifra ShaheenPosted Aug 6, 2015, 12:58 PM
Upendra Pratap ShahiPosted Aug 5, 2015, 12:58 AM
Raja TPosted Aug 5, 2015, 12:29 AM
Jignesh TrivediPosted Aug 4, 2015, 11:48 PM
Hi,
you have two choice, either Pass both the query in single command with comma (;) separated or use transaction scope.
Ifra ShaheenPosted Aug 4, 2015, 1:28 PM
Raja TPosted Aug 3, 2015, 6:20 AM
Manas MohapatraPosted Aug 3, 2015, 6:20 AM
Amitesh VermaPosted Aug 3, 2015, 5:57 AM
alert("Success");
})
.error(function (response) {
alert("error");
})