TAILIEUCHUNG - SQL Server MVP Deep Dives- P21

SQL Server MVP Deep Dives- P21: Each year Microsoft invites all the MVPs from every technology and country to Redmond for an MVP Summit—all top secret—“don’t tweet what you see!” During the MVP Summit, each product team holds a series of presentations where they explain their technologies, share their vision, and listen to some honest feedback. | 754 Chapter 59 Incremental loads using T-SQL and SSIS SQL Server 2008 are the Change Tracking and Change Data Capture features which as their names imply automatically track which rows have been changed making selecting from the source database much easier. Now that we ve looked at an incremental load using T-SQL let s consider how SQL Server Integration Services can accomplish the same task without all the hand-coding. Incremental loads in SSIS SQL Server Integration Services SSIS is Microsoft s application bundled with SQL Server that simplifies data integration and transformations and in this case incremental loads. For this example we ll use SSIS to execute the lookup transformation for the join functionality combined with the conditional split for the WHERE clause conditions transformations. Before we begin let s reset our database tables to their original state using the T-SQL code in listing 8. Listing 8 Resetting the tables USE SSISIncrementalLoad_Source GO TRUNCATE TABLE insert into Insert unchanged row ColID ColA ColB ColC VALUES 0 A 1 1 2007 12 01 AM -1 -- insert a changed row INSERT INTO Insert changed row ColID ColA ColB ColC VALUES 1 B 1 1 2007 12 02 AM -2 INSERT INTO Insert new row ColID ColA ColB ColC VALUES 2 N 1 1 2007 12 03 AM -3 USE SSISIncrementalLoad_Dest GO TRUNCATE TABLE insert into Insert unchanged row ColID ColA ColB ColC VALUES 0 A 1 1 2007 12 01 AM -1 insert into Insert changed row ColID ColA ColB ColC VALUES 1 C 1 1 2007 12 02 AM -2 With the tables back in their original state we ll create a new project using Business Intelligence Development Studio BIDS . Creating the new BIDS project To follow along with this example first open BIDS and create a new project. We ll name the project SSISIncrementalLoad as shown in figure 1. Once the project loads open Solution Explorer right-click the package and rename to .

Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.