Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Control Flow Using SSIS

939 views

Published on

Control Flow Using SSIS

Published in: Technology
  • Be the first to comment

Control Flow Using SSIS

  1. 1. SSISControl Flow Ram Kedem
  2. 2. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com Precedence Constraints •Precedence constraints provide a means of controlling the flow of a package based upon a tasks succeeding, failing, or completing, and offers the ability to evaluate a variable value with task completion to direct package path. •The most basic precedence constraint allows defining the flow of a package based upon task success, failure, or completion.
  3. 3. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com Precedence Constraints using email verification
  4. 4. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com Precedence Constraints using email verification
  5. 5. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com Precedence Constraints using email verification
  6. 6. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com Precedence Constraints using email verification
  7. 7. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com Precedence Constraints using email verification
  8. 8. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com Precedence Constraints using email verification
  9. 9. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com Precedence Constraints using email verification
  10. 10. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com Precedence Constraints using email verification
  11. 11. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com Precedence Constraints using email verification
  12. 12. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com Precedence Constraints using email verification
  13. 13. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com Precedence Constraints using email verification
  14. 14. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com Precedence Constraints using email verification
  15. 15. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com Precedence Constraints using email verification
  16. 16. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com Precedence Constraints using email verification
  17. 17. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com Precedence Constraints using email verification
  18. 18. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com Precedence Constraints using email verification
  19. 19. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com Sequence Containers •The Sequence container defines a control flow that is a subset of the package control flow. •Sequence containers group the package into multiple separate control flows, each containing one or more tasks and containers that run within the overall package control flow. •The Sequence container can include multiple tasks in addition to other containers. •Adding tasks and containers to a Sequence container is similar to adding them to a package, except you drag the tasks and containers to the Sequence container instead of to the package container. •If the Sequence container includes more than one task or container, you can connect them using precedence constraints just as you do in a package.
  20. 20. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com Sequence ContainersBenefits •Disabling groups of tasks to focus package debugging on one subset of the package control flow. •Managing properties on multiple tasks in one location by setting properties on a Sequence container instead of on the individual tasks. •Providing scope for variables that a group of related tasks and containers use. •Grouping many tasks so you can more easily managed them by collapsing and expanding the Sequence container. •Set a transaction attribute on the Sequence container to define a transaction for a subset of the package control flow. In this way, you can manage transactions at a more granular level.
  21. 21. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com Group Box •You can also create task groups, which expand and collapse using the Group box. •However, the Group box is a design-time feature that has no properties or run-time behavior.
  22. 22. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com Sequence Containers
  23. 23. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com Transactions & Sequence Containers
  24. 24. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com Transactions & Sequence Containers
  25. 25. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com Transactions & Sequence Containers •Requiredindicates that the container starts a transaction, unless one is already started by its parent container. If a transaction already exists, the container joins the transaction. •Supportedindicates that the container does not start a transaction, but joins any transaction started by its parent container. •NotSupportedindicates that the container does not start a transaction or join an existing transaction. A transaction started by a parent container does not affect child containers that have been configured to not support transactions.
  26. 26. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com For Each Loop •The ForeachLoop container defines a repeating control flow in a package. The loop implementation is similar to Foreachlooping structure in programming languages. •In a package, looping is enabled by using a Foreachenumerator. The ForeachLoop container repeats the control flow for each member of a specified enumerator.
  27. 27. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com For Each Loop
  28. 28. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com For Each Loop
  29. 29. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com For Each Loop
  30. 30. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com For Each Loop
  31. 31. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com For Each Loop
  32. 32. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com For Each Loop
  33. 33. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com For Each Loop
  34. 34. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com For Each Loop
  35. 35. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com For Each Loop
  36. 36. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com For Each Loop
  37. 37. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com For Each Loop
  38. 38. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com For Loop •The For Loop container defines a repeating control flow in a package. The loop implementation is similar to the For looping structure in programming languages. In each repeat of the loop, the For Loop container evaluates an expression and repeats its workflow until the expression evaluates to False. •The For Loop container uses the following elements to define the loop: •An optional initialization expression that assigns values to the loop counters. •An evaluation expression that contains the expression used to test whether the loop should stop or continue. •An optional iteration expression that increments or decrements the loop counter
  39. 39. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com For Loop
  40. 40. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com For Loop
  41. 41. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com For Loop
  42. 42. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com For Loop
  43. 43. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com For Loop
  44. 44. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com For Loop
  45. 45. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com For Loop
  46. 46. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com For Loop
  47. 47. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com For Loop
  48. 48. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com For Loop
  49. 49. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com For Loop
  50. 50. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com Parameters •Integration Services (SSIS) parameters allow you to assign values to properties within packages at the time of package execution. •You can create project parameters at the project level and package parameters at the package level. Project parameters are used to supply any external input the project receives to one or more packages in the project. •Package parameters allow you to modify package execution without having to edit and redeploy the package.
  51. 51. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com Connection Parameters
  52. 52. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com Connection Parameters
  53. 53. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com Connection Parameters
  54. 54. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com Connection Parameters
  55. 55. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com Connection Parameters
  56. 56. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com Connection Parameters
  57. 57. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com Query Parameters
  58. 58. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com Query Parameters
  59. 59. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent ramkedem.com Query Parameters

×