0

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 ?

3
  • 2
    Why, sounds like you are doing something a little naughty Commented Apr 11, 2017 at 13:37
  • This post shows no research or effort to answer the question on your part. Commented 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. Commented Apr 11, 2017 at 13:54

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.