NAME
Win32::SqlServer::DTS::Assignment::EnvVar - a class to represent a DynamicPropertiesTaskAssignment object
SYNOPSIS
use warnings;
use strict;
use Win32::SqlServer::DTS::Application;
use Test::More;
use XML::Simple;
my $xml = XML::Simple->new();
my $config = $xml->XMLin('test-config.xml');
my $app = Win32::SqlServer::DTS::Application->new($config->{credential});
my $package =
$app->get_db_package(
{ id => '', version_id => '', name => $config->{package}, package_password => '' } );
my $iterator = $package->get_dynamic_props();
while ( my $dyn_prop = $iterator->() ) {
foreach my $assignment_prop() ( @{ $dyn_prop->get_properties() } ) {
if ( $assignment_prop->get_type() eq 'EnvVar' ) {
print $assignment_prop->to_string(), "\n";
}
}
}
DESCRIPTION
Win32::SqlServer::DTS::Assignment::DataFile
is a subclass of Win32::SqlServer::DTS::Assignment superclass. It represents a DTS DynamicPropertiesTaskAssignment
object that has a SourceEnvironmentVariable
property defined.
Unless you want to extend the DTS
API is quite probably that you're going to use Win32::SqlServer::DTS::Assignment::EnvVar
returned by the get_properties
method from Win32::SqlServer::DTS::Task::DynamicProperty
class.
EXPORT
Nothing.
METHODS
get_source
Overrided method from Win32::SqlServer::DTS::Assignment class. Returns a string returns the name of an environment variable that contains the value to which a Data Transformation Services (DTS) package object property will be set by the DynamicPropertiesTask object. See Win32::SqlServer::DTS::Assignment method for more information.
SEE ALSO
Win32::SqlServer::DTS::Assignment is the superclass of
Win32::SqlServer::DTS::Assignment::EnvVar
.Win32::OLE at
perldoc
.MSDN on Microsoft website and MS SQL Server 2000 Books Online are a reference about using DTS' object hierarchy, but the documentation one will need to convert examples written in VBScript to Perl code.
AUTHOR
Alceu Rodrigues de Freitas Junior, <arfreitas@cpan.org>
COPYRIGHT AND LICENSE
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.