A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
Had a hard time to post.
Here is a link to the solution I posted in gitbub:
8200076ab67788813ce773146e703a85