Win32::SqlServer::DTS::AssigmentTypes - a Perl abstract class that knows all DynamicPropertiesTaskAssignment objects types.
# assuming that $assignment is a DTS Dynamic Property assignment object
my $type = Win32::SqlServer::DTS::AssignmentTypes->get_class_name($assignment->SourceType);
Win32::SqlServer::DTS::AssignmentTypes is a simple abstract class that knows all existing types of DTS Dynamic Properties assignments types and how to convert those types to Win32::SqlServer::DTS::Assignment subclasses names.
This abstract class should be used only if one wants to extend the DTS API.
None by default.
get_class_name is an abstract method that converts the numeric type code from DTS API constant DynamicPropertiesTaskSourceType to a proper string that represents a subclass of Win32::SqlServer::DTS::Assignment class. Returns one of the following strings, depending on the numeric code received as a parameter:
The valid types are:
Win32::SqlServer::DTS::Assignment at perldoc, as well it's subclasses.
Win32::SqlServer::DTS::AssignmentFactory at perldoc also uses the get_class_name method.
Win32::OLE at perldoc.
MSDN on Microsoft website and MS SQL Server 2000 Books Online are a reference about using DTS' object hierarchy, but one will need to convert examples written in VBScript to Perl code.
Alceu Rodrigues de Freitas Junior, <firstname.lastname@example.org>
Copyright (C) 2006 by Alceu Rodrigues de Freitas Junior
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
To install Win32::SqlServer::DTS, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.