What will happen to a database server if I execute a stored procedure that contains an erroneous condition, causing an infinite loop? Is there any way for the DBA to detect such a sitution and halt it ?
-
2Why, sounds like you are doing something a little naughtyDr Schizo– Dr Schizo2017-04-11 13:37:00 +00:00Commented Apr 11, 2017 at 13:37
-
This post shows no research or effort to answer the question on your part.dfundako– dfundako2017-04-11 13:49:41 +00:00Commented Apr 11, 2017 at 13:49
-
Of course you should check any code you write that has a loop to make sure it is not going to go into an infinite loop.HLGEM– HLGEM2017-04-11 13:54:02 +00:00Commented Apr 11, 2017 at 13:54
Add a comment
|
1 Answer
What will happen to a database server if I execute a stored procedure that contains an erroneous condition, causing an infinite loop?
It depends on the query ..query may consume more resources,may cause blockings and many things can happen
Is there any way for the DBA to detect such a sitution and halt it ?
DBA can check for long running queries and kill this query