What is the Cognos equivalent to the SQL Server FOR EACH Loop command?
As far as I am aware, Microsoft SQL Server does not have a FOR EACH control flow statement. What are you trying to do?
If you have procedural code, you should put it in the database as a stored procedure. You can call that from Cognos.
But databases are built for set-oriented operations. Most of the time, you should be able to get what you want without resorting to stored procedures.