SqlServer was based on the Sybase engine, where transact sql was a true language, and stored procedures are written in transact Sql. The language has cursors, if/then/else, loop, set, and can call other stored procs. you probably can migrate the code.
Sqlserver's CLR integration is more similar to Oracle's stored procedures:
you might be interested in writing stored procedures in python: