hi we run 2014 enterprise. i'm writing a t-sql script that will repeat certain lines 2 or more times and was hoping to find some sort of inline function capability in t-sql.
i read the article at https://stackoverflow.com/questions/981451/can-i-create-a-one-time-use-function-in-a-script-or-stored-procedure but wasnt thrilled with the answers and kept thinking there must be a way in t-sql to write a paragraph that can be "performed/called" from the main portion of the code.