ASP
  Home arrow ASP arrow Creating DTS Packages With SQL Server 2000
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Actuate Whitepapers 
Moblin 
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? 
ASP

Creating DTS Packages With SQL Server 2000
By: Tim Pabst
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 217
    2002-02-01

    Table of Contents:
  • Creating DTS Packages With SQL Server 2000
  • What is a DTS package?
  • Creating a DTS package
  • Exporting the results set to a text file
  • Executing our DTS package in ASP
  • Conclusion

  • 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

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    Creating DTS Packages With SQL Server 2000


    (Page 1 of 6 )

    Data Transformation Services (DTS) were added to SQL Server 7 and allow us to combine several data-related tasks into one common object. In this article Tim shows us how to create a DTS package with SQL Server 2000 that will access a database and email the results of a query to some sales executives. He also shows us how to execute and error trap DTS packages from within an ASP script.Back in the days when Microsoft SQL Server 6.5 was still hot property, the bulk copy program was the only way to backup or export databases from SQL Server to other data sources, such as other database servers or text files. DBA's (Database Administrators) would spend hours setting up and automating backup scripts for each server, and it wasn't until the release of SQL Server 7 that Microsoft finally gave DBA's a set of drag and drop tools to accomplish this more quickly and easily. This set of tools is known as DTS (Data Transformation Services).

    By creating DTS packages, we can combine several tasks into one process and use any programming language that supports automation (such as Visual Basic 6, ASP, or C++) to execute these packages and monitor their progress for errors, etc.

    In this article I'm going to show you how to create a DTS package that retrieves sales data from a Microsoft SQL Server 2000 database and emails it to a fictitious list of company executives. We will take an in-depth look at creating the package, what tools we can use to make our job easier, and the details of the DTS.Package COM object, which we can use to execute a DTS package. We will also look at calling a DTS package from ASP.

    To test the examples in this article, you should have access to a Windows 2000 web server running IIS version 5 (configured with an SMTP mail server), as well as SQL Server 2000. You should also be familiar with VBScript, ASP, and some basic SQL "INNER JOIN" syntax.

    More ASP Articles
    More By Tim Pabst


     

    ASP ARTICLES

    - Central Scoreboard with Flash and ASP
    - Calorie Counter Using WAP and ASP
    - Creating PGP-Encrypted E-Mails Using ASP
    - Be My Guest in ASP
    - Session Replacement in ASP
    - Securing ASP Data Access Credentials Using t...
    - The Not So Ordinary Address Book
    - Adding and Displaying Data Easily via ASP an...
    - Sending Email From a Form in ASP
    - Adding Member Services in ASP
    - Removing Unconfirmed Members
    - Trapping HTTP 500.100 - Internal Server Error
    - So Many Rows, So Little Time! - Case Study
    - XDO: An XML Engine Class for Classic ASP
    - Credit Card Fraud Prevention Using ASP and C...







    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway