Creating and Editing a Control Flow Task The following exercises will familiarize you with creating and editing a control flow task and executing the package within the design environment. Exercise 1 Create a Control Flow Task and Test Package Execution

In this exercise, you will work with control flow tasks and execute packages in the SSIS Designer. 1. If necessary, start SQL Server Business Intelligence Development Studio (BIDS), open the project TK 70-448 SSIS Project you created in Lesson 1, “Creating SSIS Packages and Data Sources,” or open the completed exercise file from the companion CD, and then edit the package named MyPackage.dtsx (right-click the package in Solution Explorer, and then click Open). 2. Open the Toolbox window by selecting Toolbox from the View menu, locate the Execute SQL Task item, and drag it to the control flow workspace of your package. 3. Edit the Execute SQL Task object by double-clicking the task icon or by right-clicking the task icon and then clicking Edit. 4. Change the Connection property to use the AdventureWorks2008 connection. 5. In the SQL Statement property of the Execute SQL Task Editor dialog box, type the following code: UPDATE Production.Product SET ProductLine = 's' WHERE ProductLine IS NULL

6. Click OK in the Execute SQL Task dialog box to return to the SSIS Designer. Right-click

the Execute SQL Task, click Rename, and type Update ProductLine. 7. Next, drag a Sequence Container object from the toolbox onto the control flow workspace. 8. Drag the Update ProductLine Execute SQL Task you just created into the Sequence Container so that the task is nested in the Sequence Container box. 9. To test the execution of the package, click Start Debugging on the Standard toolbar or choose Start Debugging from the Debug menu. 10. When the package execution is complete, your Sequence Container and Execute SQL Task should be Green 11. Click the Execution Results tab (named Progress while the package is executing) in the

SSIS Designer to view the execution details. 12. Select the Stop button from the tool menu to stop the debugger (or choose Debug, Stop Debugging from the Debug menu). 13. Click the Save All button on the BIDS toolbar. Exercise 2 Modify the DimCustomer ETL Package Control Flow

In this exercise, you will start the process of building the DimCustomer SSIS package that will handle the ETL process from the AdventureWorks2008 database to the AdventureWorksDW2008 database. 1. If necessary, start SQL Server Business Intelligence Development Studio (BIDS), open the project TK 70-448 SSIS Project you created in Lesson 1, “Creating SSIS Packages and Data Sources,” or open the completed exercise file from the companion CD, and then open the empty DimCustomer package. 2. From the toolbox, drag two Execute SQL Tasks onto the control flow workspace and then drag one Data Flow Task onto the workspace. 3. Next, connect the first Execute SQL Task to the Data Flow Task by dragging the green precedence constraint from the Execute SQL Task onto the Data Flow Task. Then connect the green precedence constraint from the Data Flow Task to the second Execute SQL Task. 4. Rename the first Execute SQL Task to Truncate Update Table, and rename the second Execute SQL Task to Batch Updates. Figure 1-19 shows what your resulting control flow should look like.

5. Before editing the tasks in SSIS, open SSMS, connect to the Database Engine, and create

a new query against the AdventureWorksDW2008 database. Execute the following code, which you can find in the CreateCustomerUpdateTable.sql file in the ..\Source\Ch 01\ folder of the practice exercise files. USE AdventureWorksDW2008 GO CREATE TABLE [dbo].[stgDimCustomerUpdates]( [CustomerAlternateKey] [nvarchar](15) NULL, [AddressLine1] [nvarchar](60) NULL, [AddressLine2] [nvarchar](60) NULL, [BirthDate] [datetime] NULL, [CommuteDistance] [nvarchar](15) NULL, [DateFirstPurchase] [datetime] NULL, [EmailAddress] [nvarchar](50) NULL, [EnglishEducation] [nvarchar](40) NULL, [EnglishOccupation] [nvarchar](100) NULL, [FirstName] [nvarchar](50) NULL, [Gender] [nvarchar](1) NULL, [GeographyKey] [int] NULL, [HouseOwnerFlag] [nvarchar](1) NULL, [LastName] [nvarchar](50) NULL, [MaritalStatus] [nvarchar](1) NULL, [MiddleName] [nvarchar](50) NULL, [NumberCarsOwned] [tinyint] NULL, [NumberChildrenAtHome] [tinyint] NULL, [Phone] [nvarchar](25) NULL, [Suffix] [nvarchar](10) NULL, [Title] [nvarchar](8) NULL, [TotalChildren] [tinyint] NULL, [YearlyIncome] [nvarchar](100) NULL) ON [PRIMARY]

6. After you have successfully created the table, switch back to the DimCustomer SSIS

package and edit the Execute SQL Task named Truncate Update Table. 7. In the Execute SQL Task Editor dialog box, set the Connection property to AdventureWorksDW2008, and then enter the following SQL code in the SQLStatement property before clicking OK to save it: TRUNCATE TABLE dbo.stgDimCustomerUpdates

8. Edit the last Execute SQL Task, named Batch Updates, and set the Connection property

to AdventureWorksDW2008. 9. In the SQLStatement property, enter the following UPDATE statement. (You can find this statement in the UpdateCustomerTable.sql file in the ..\Source\Ch 01\ practice exercise folder.) UPDATE dbo.DimCustomer SET AddressLine1 = stgDimCustomerUpdates.AddressLine1 , AddressLine2 = stgDimCustomerUpdates.AddressLine2 , BirthDate = stgDimCustomerUpdates.BirthDate , CommuteDistance = stgDimCustomerUpdates.CommuteDistance , DateFirstPurchase = stgDimCustomerUpdates.DateFirstPurchase , EmailAddress = stgDimCustomerUpdates.EmailAddress , EnglishEducation = stgDimCustomerUpdates.EnglishEducation , EnglishOccupation = stgDimCustomerUpdates.EnglishOccupation , FirstName = stgDimCustomerUpdates.FirstName , Gender = stgDimCustomerUpdates.Gender , GeographyKey = stgDimCustomerUpdates.GeographyKey , HouseOwnerFlag = stgDimCustomerUpdates.HouseOwnerFlag , LastName = stgDimCustomerUpdates.LastName , MaritalStatus = stgDimCustomerUpdates.MaritalStatus , MiddleName = stgDimCustomerUpdates.MiddleName

, NumberCarsOwned = stgDimCustomerUpdates.NumberCarsOwned , NumberChildrenAtHome = stgDimCustomerUpdates.NumberChildrenAtHome , Phone = stgDimCustomerUpdates.Phone , Suffix = stgDimCustomerUpdates.Suffix , Title = stgDimCustomerUpdates.Title , TotalChildren = stgDimCustomerUpdates.TotalChildren FROM dbo.DimCustomer DimCustomer INNER JOIN dbo.stgDimCustomerUpdates ON DimCustomer.CustomerAlternateKey = stgDimCustomerUpdates.CustomerAlternateKey

10. Click OK in the Execute SQL Task Editor dialog box, and then save the package. In the

next lesson, you will complete the data flow portion of this package and then test the execution.

Lab02Creating and Editing a Control Flow Task.pdf

There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Lab02Creating ...

162KB Sizes 1 Downloads 160 Views

Recommend Documents

FLOW CONTROL Xblock.pdf
Page 2 of 5. For any unit that has FLOW CONTROL: Redirect. condition. Display the. unit's. content. Display. an. HTML. content. Condition. not met. Switch to.

Chapter5-Control Flow Statement.pdf
loop. Iteration. Construct. Whoops! There was a problem loading this page. Chapter5-Control Flow Statement.pdf. Chapter5-Control Flow Statement.pdf. Open.

Joint Scheduling and Flow Control for Multi-hop Cognitive Radio ...
Cognitive Radio Network with Spectrum Underlay ... multi-hop CRN overlay with a primary network in [2]. .... network can support in sense that there exists a.

Joint Scheduling and Flow Control for Multi-hop Cognitive Radio ...
Cognitive Radio Network with Spectrum Underlay ... multi-hop CRN overlay with a primary network in [2]. .... network can support in sense that there exists a.

Perspectives-In-Flow-Control-And-Optimization-Advances-In-Design ...
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Perspectives-In-Flow-Control-And-Optimization-Advances-In-Design-And-Control.pdf. Perspectives-In-Flow-Contr

mobile backbone network routing with flow control and ...
into the network so that the Quality-of-Service of admitted flows could be ..... values between 7 and 9 hops yield the best delay-throughput performance behavior. .... on Broadband Networks (BroadNets), page 661-670, Oct. 2004. Authorized ...

control of a unified power flow controller (upfc) œa ...
Fig 2.4 Two machine system with Unified Power Flow Controller. 12. Fig 2.5 Attainable sending-end reactive power vs. transmitted power. 14 and receiving-end reactive power vs. transmitted power values with the UPFC at δ=0o, δ=30o,δ=60o,δ=90o. Fig

Multiple Vehicle Driving Control for Traffic Flow Efficiency
challenges such as traffic flow efficiency, safety enhancement and environmental ..... 73 ms to post-process the vision data. Two LIDARs were used to maintain ...

66 Perfect Reconstructability of Control Flow ... - Research at Google
They explicitly model the flow of data and state, and only implicitly represent a restricted form of ... control flow in a structured form, which allows for simpler and more powerful imple- ..... Left: Unstructured CFG (loop with two entry and exit p

Operator Type Operator Java Flow of Control - GitHub
Operator Type. Operator. Java Flow of Control. Unary ! ++ -- + -. Java Evaluates First. Mul plica ve. * / %. Addi ve. + -. Rela onal. < > = Equality. == !=

Enforcing System-Wide Control Flow Integrity for Exploit ... - CiteSeerX
Adobe Reader. 8.1.1 .... Adobe flash, IE, Google Chrome and so on), no more than. 1000 files were ..... machine introspection via online kernel data redirection.

Control Flow Integrity Enforcement with Dynamic Code Optimization
We further perform comprehensive evaluations and shed light on the exact amount of savings contributed by ...... ment using randomization for Cloud Computing No. 61373168 and ... The performance cost of shadow stacks and stack canaries.

PLASMA JET FOR FLOW CONTROL NV Ardelyan, VL ...
gasdynamic channel stand, one can see, that the direction ... generator power is 10-15 kW, the gas consumption .... plasma generator power 15 kW, typical time.

Enforcing Forward-Edge Control-Flow Integrity in ... - master.pcc.me.uk
VTV protects only virtual calls and does not attempt to verify other types of. 3 ..... Under these circumstances, IFCC changes the way it operates on function ...

{ Download } Light Flow Pro - LED Control v3.73.00 ...
{ Download } Light Flow Pro - LED Control v3.73.00. APK. Take control ... Blackberry device and miss the features of BeBuzz / BerryBuzz then give LightFlow a try!

Control Flow Integrity Enforcement with Dynamic Code Optimization
variants introduced [4, 10, 12, 20, 24–26]. Some of these ..... fair comparison with existing work, we used twelve pure C/C++ programs we can find in SPEC ...

Editing Red And Blue Pencils.pdf
Page 1 of 3. Editing Red And Blue. Pencil Use Poster. Saying Based On Joan Pokrant's Presentation For. Collin's Writing Workshop. (Collin's Education Associates LLC). by Regina Davis. Clip Art by Pink Cat Studio http://www.teacherspayteachers.com/Sto

Flow sensor using a heat element and a resistance temperature ...
Jul 28, 2010 - the line C-C' in FIG. 14; and. 20. 25. 30. 35. 40. 45 .... terminal electrode 6e is shoWn and the illustration of the other terminal electrodes 6a, 6b, ...

Queueing behavior under flow control at the subscriber ...
University of Califomia, Los Angeles, Los Angeles, CA 90024. Abstract. A Credit Manager .... analyze the stochastic behavior of the system under the flow control ...

Correcting the Dynamic Call Graph Using Control Flow ...
Complexity of large object oriented programs. ❑ Decompose the program into small methods ... FDOM (Frequency dominator) correction. ○. Static approach. ○. Uses static FDOM constraint on DCG. ❑. Dynamic basic block profile correction. ○. Dyn