我想從我的平面檔案中洗掉一些列,因為我想使用 SSIS 加載到 SQL 服務器資料倉庫中,如何使用 SSIS 實作這種轉換,請參閱附件中的說明。對于如我不想%Salary和Address我的改造。

uj5u.com熱心網友回復:
您可以按照以下步驟操作:
- 創建資料流任務
- 定義平面檔案源并創建新的連接管理器并指向源檔案。
- 創建帶有所需標題的空平面檔案。按照后續步驟定義平面檔案目標并指向平面檔案空目標。
- 右鍵單擊平面檔案目標,單擊編輯。它將拋出一個彈出視窗,如下所示。單擊
Yes。

- 定義指向目標檔案的新連接管理器。

現在,指向您的空目標檔案。如果您轉到列選項卡,則只會出現特定列。

Now, connect the Flat file source to Flat file destination. Now, only specific columns will be mapped as given below:

6.Now, you run the package, only specific columns will be loaded.

UPDATE: Sorry. I misunderstood destination as Flat File Destination. If you are having SQL Server Data Warehouse as the destination, you need to follow below steps.
- you can create Table in destination with specific columns.
- Connect Flat file source to OLEDB Destination, as given below:

- Mapping should be done only for specific columns. You dont need specific transformations in the middle.

uj5u.com熱心網友回復:
即使提供的方法可以正常作業,為什么您應該將所有無用的列加載到資料管道中以在最后忽略它們。您可以簡單地從平面檔案源編輯器中取消選中它們。

轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/415825.html
標籤:
下一篇:使用TeradataSQL修改TRUNC、ADD_MONTHS、LAST_DAY查詢以便在SQLServer上作業?
