0

私は初めてでSSIS、SQLテーブルからExcelファイルを生成したいと思っています。

SQLテーブル:mydata

Id    date       value
1     2013-02-2  236823
2     2013-02-3  185454

今、私は私に次のような入力を与えるファイルを生成してExcelにする必要があります

dateと_value

そのExcelファイルを生成するにはどうすればよいですか?

どんなスレッドでも教えてください。とても助かります。

私は始めようとしましたdata flow task

内部で私はole db sourceSQLクエリを取り、書いていますselect date ,value from mydata

次に追加しましたExcel destinationか?

しかし、それは私にエクセルの目的地でエラーを与えています:

external table is not in expected format
4

1 に答える 1

1

私の友人、あなたはこれまでに何を試しましたか?これは単純なクリック-クリック-クリックのものです。次回は、あなたの努力を分かち合ってください。ガイダンスは次のとおりです。

1. Place a DFT on the Control Flow surface
2. Double-click on the DFT to enter into the Data Flow surface
3. Place an OLE DB Source. Double-click on it. Click on New... button and create a new OLE DB connection manager
4. Data access mode: Table or view. Select your table
5. Click on the columns. Select the fields you want.
6. Now place an Excel Destination. Connect it to the OLE DB Source.
7. Double-click and click on New... button. Give the Excel file path where you want to dump the data.
8. Click on New.. Some warning will appear. Accept it.
9. Select the Name of the Excel sheet from the drop down.
10. Run the package.

これは単純なバニラソリューションです。基本を理解したら、ソリューションを磨きます。たとえば、変数を介して接続を設定することを考えてみてください。

幸運を!

于 2013-03-20T16:51:22.050 に答える