What is difference between For Loop, For Each Loop and Sequence containers?

  • Can anybody give me the difference between For Loop, For Each Loop and Sequence containers in simple terms with example.

  • Take a look at this thread: http://www.sqlservercentral.com/Forums/Topic929630-391-1.aspx

  • the given link does not have difference between sequence container

  • Sequence container isn't really about looping. it's just a way to logically group a "sequence of tasks" in a control flow.

    if you have a set of tasks:

    - needing to run in different sections of the overall flow

    - needing to run in parallel containers

    - which you'd like to test, debug and/or disable together as need be.

    - which need to see a specific set of variables whose scope needs to be managed.

    then use the sequence container.

    ----------------------------------------------------------------------------------
    Your lack of planning does not constitute an emergency on my part...unless you're my manager...or a director and above...or a really loud-spoken end-user..All right - what was my emergency again?

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply