MS SQL Server
  Home arrow MS SQL Server arrow Page 3 - Using Data Transformation Services, part 5...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Mobile Linux 
App Generation ROI 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
MS SQL SERVER

Using Data Transformation Services, part 5: Package Execution with ASP.NET
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 13
    2005-06-13

    Table of Contents:
  • Using Data Transformation Services, part 5: Package Execution with ASP.NET
  • Creating the package details of the two connections
  • Part B: Create a Web project
  • Write simple code to execute the package
  • Verify the results

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Using Data Transformation Services, part 5: Package Execution with ASP.NET - Part B: Create a Web project


    (Page 3 of 5 )

    In the Visual Studio 2003 IDE, go to File-->New--> Project. This opens up the New Project Window, where you choose to create an ASP.NET Web application (named DTS in this tutorial). Rename the WebForm1.aspx to some chosen name (ExecPackage in this tutorial). Your Solution/Project would appear as shown here.

    APS.NET project

    Add references to DTS COM Assemblies

    In order to access the DTS properties and methods, we need to add appropriate references. Right click the References tab and click on Add reference.... This brings up the Add Reference window, where you can establish references to .NET, COM, or Projects. DTS is to be accessed as a COM interface, so go to the COM tab. Scroll down to see whether DTS related assemblies are available. If they are, you can select them and add them to the References node.

    After adding this, you will be able to access the properties and methods of DTS objects. If not, you use the Browse... button to locate those files and add them to the references of your application. They should be found in the Program Files folder at a location similar to the following: C:\Program Files\Microsoft SQL Server\80\Tools\Binn. This is shown in the following picture.

    Adding a reference

    There are two files that may be needed, dtspkg.dll and dtspump.dll. In this tutorial we will be using only the dtspkg.dll file. The dtspump.dll file is needed mostly for leveraging ActiveX scripting support.

    With these references added, your project would appear as shown in the next picture. Also shown is the object browser for the project. You can see the Interop.DTS and Interop.DTSPUMP assemblies in the listing.

    Project with references added

    More MS SQL Server Articles
    More By Jayaram Krishnaswamy


     

    MS SQL SERVER ARTICLES

    - Completing the Introduction to Transact-SQL
    - A Brief Introduction to Transact-SQL
    - Lookups and Blocking Bad Data
    - Field Validation Rules for Blocking Bad Data
    - Using Masks to Block Bad Data
    - Blocking Bad Data
    - Using @@ROWCOUNT and TABLE Variables for Dat...
    - How to Use Variables, IF and CASE in Databas...
    - Creating Important Aspects of Notification S...
    - Working wth Variables in Database Interactio...
    - Delving Deeper into Notification Services
    - Notification Services
    - Building a Multi-table Report with SQL 2005 ...
    - A Secure Way of Building Connection Strings
    - Transferring a Database Using the SSIS Desig...





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
    Stay green...Green IT