how sql server handles infinite loops? Whether it detects this or kills the server.
EG:
WHILE (@number = 3) BEGIN print @number END
It depends on how long the client command waits.
By default, the .net application terminates after 30 seconds, and SSMS will wait forever (timeout = zero)
The SQL Server engine itself does not have the concept of "OK, I had enough"
try :) no, it does NOT detect them. it is simply regarded as a long running transaction.
also any type of loop is a sign of really bad sql coding practice
Source: https://habr.com/ru/post/1723757/More articles:Trying to get a terminal to work in Emacs - pythonHow to find all classes of a specific interface in an assembly in .net - reflectionРекомендации по улучшению качества программного обеспечения - c#Magic quotes in old and new versions of PHP - phpHow to debug a program that ends with an unhandled exception? - c ++Can we use pthread instead of NSThread in iPhone apps - c ++Sharing Viewdata for all actions in ASP.NET MVC - asp.net-mvcJSP custom tag - detects other instances - javaHow to make a div to show scrollbars (without a fixed height)? - htmlHow to create a translucent image using imagemagick - imagemagickAll Articles