I have a SQL stored procedure that I need to execute several times with different parameters. Is it possible to execute a SQL-script of some kind that will execute multiple times with like an array or other data-structure of different parameters? Any thoughts on this?
Share
you can use a cursor (but if it’s possible to restructure your code, try YS’s answer):
EDIT: added FAST_FORWARD as per @YS’s suggestion