DTS Class Module and Events
The program Creates a VB Class Module from a DTS Package on a SQL Server, with all events, and its own events(Progress, currentTask, etc)
It creates a very compact script, so you can very large packages in a single routine.
The Class Module "ClassDTSScript" is what is created when you get a package from the server and script it. Simply remove the example, and add one you have done to test it. The example execution asks you to navigate to the source and destination Access Databases, and uses the filepath to pass in an ADO style connection string for the source and destination connections. The parsing routine in the class module will work for SQL Server or ACCESS. I have not handled more complicated transformations such as Many to one column mappings and such, but Execute SQL and DATAPUMP Tasks work quite well. The Example "ClassDTSScript" module included was created from a package in SQL Server 7, and includes a couple of queries, two transformations, and running a stored procedure with a parameter, as well as demonstrating using the events that are called by the DTS Package object. Read the comments in the code carefully to better understand the uses.
Original Author: Darryn Frost
About this post
Posted: 2002-06-01
By: ArchiveBot
Viewed: 98 times
Categories
Attachments
DTS_Class_4532812312001.zip
Posted: 9/3/2020 3:45:00 PM
Size: 252,312 bytes
Loading Comments ...
Comments
No comments have been added for this post.
You must be logged in to make a comment.