I have a large SQL script which repeats a process many times for different values, i.e.:
EXEC :uUserID := :uUserID01
runsql .... where userid=:uUserID
EXEC :uUserID := :uUserID02
runsql .... where userid=:uUserID
EXEC :uUserID := :uUserID03
runsql .... where userid=:uUserID
etc
Ideally I would like to have:
runprocedure1(user1)
runprocedure1(user2)
runprocedure1(user3)
But i do not want to store anything in the DB, just run the SQL standalone. Can this be done?
There's no need for sarcastic replies, we've not all been this sad for that long!
EXEC :uUserID := :uUserID01
runsql .... where userid=:uUserID
EXEC :uUserID := :uUserID02
runsql .... where userid=:uUserID
EXEC :uUserID := :uUserID03
runsql .... where userid=:uUserID
etc
Ideally I would like to have:
runprocedure1(user1)
runprocedure1(user2)
runprocedure1(user3)
But i do not want to store anything in the DB, just run the SQL standalone. Can this be done?
There's no need for sarcastic replies, we've not all been this sad for that long!