The first example in this chapter demonstrated the DataReader Destination in SSIS, which adds flexibility to SSIS by exposing package output. In the first example, the output was consumed by a Reporting Services Report. This example demonstrates the capability of SSIS to interact with custom external applications by interfacing with a simple ASP.NET application.
This example application is written in VB.NET 2005 and displays the output from an SSIS package in an ASP.NET GridView control. Thanks to Ashvini Sharma and Ranjeeta Nanda for technical support!
In Visual Studio 2005, create a new Integration Services project. Drag a Data Flow task onto the Control Flow and double-click it to open the Data Flow tab. Drag an OLE DB Source onto the Data Flow and double-click to edit. Configure the OLE DB Source as follows (shown in Figures 17-19 and 17-20):
OLE DB Connection Manager: Click New to open the Configure OLE DB Connection Manager dialog box, and then click New to open the Connection Manager dialog box. Configure the connection as follows:
Server Name: [Your server name]
Log on to the server: Use Windows Authentication
Select or enter a database name: AdventureWorks
Click the Test Connection button to confirm connectivity, as shown in Figure 17-19, and then click OK to proceed.
Data Access Mode: SQL Command
SQL Command Text:
SELECT Title, FileName FROM Production.[Document]
Select the fields you wish ...