Don't have Telegram yet? Try it now!
https://www.techmixing.com/2014/01/while-loop-in-sql-server.html
While loop in SQL server