A Custom CLR Assembly for MSSQL of the popular tool GodPotato. for usage reference, please see the accompanying blog post @ https://blog.cyndicatelabs.co.uk.
There is also a text file MSSQL_Commands.txt where you can retrieve the required MSSQL commands to perform the full chain attack.
A big thanks to BeichenDream for the original GodPotato tool.