O'Reilly logo

Professional SQL Server™ 2005 Integration Services by Mike Murphy, Haidong Ji, Jason Gerard, Erik Veerman, Andy Leonard, Kathi Kellenberger, Douglas Hinson, Darren Green, Allan Mitchell, Brian Knight

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

17.3. ASP.NET Application

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]
Figure 17.19. Figure 17-19
Figure 17.20. Figure 17-20

Select the fields you wish ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required