mirror of
https://github.com/NetSPI/PowerHuntShares.git
synced 2025-05-04 19:28:42 +02:00
103 lines
4.4 KiB
Plaintext
103 lines
4.4 KiB
Plaintext
<DTS:Executable
|
|
xmlns:DTS="http://schemas.microsoft.com/sqlserver/Dts"
|
|
DTS:refId="Package"
|
|
DTS:CreationName="Microsoft.SqlServer.Dts.Runtime.Package">
|
|
|
|
<DTS:ConnectionManagers>
|
|
|
|
<!-- Database Connection 1 -->
|
|
<DTS:ConnectionManager
|
|
DTS:refId="Package.ConnectionManagers[DB1]"
|
|
DTS:CreationName="OLEDB">
|
|
<DTS:Properties>
|
|
<DTS:Property DTS:Name="ConnectionString">
|
|
Data Source=dbserver1;Initial Catalog=Database1;User ID=dbuser1;Password=dbpassword1;
|
|
</DTS:Property>
|
|
<DTS:Property DTS:Name="Description">Primary Database Connection</DTS:Property>
|
|
<DTS:Property DTS:Name="RetainSameConnection">True</DTS:Property>
|
|
</DTS:Properties>
|
|
</DTS:ConnectionManager>
|
|
|
|
<!-- Database Connection 2 -->
|
|
<DTS:ConnectionManager
|
|
DTS:refId="Package.ConnectionManagers[DB2]"
|
|
DTS:CreationName="OLEDB">
|
|
<DTS:Properties>
|
|
<DTS:Property DTS:Name="ConnectionString">
|
|
Data Source=dbserver2;Initial Catalog=Database2;User ID=dbuser2;Password=dbpassword2;
|
|
</DTS:Property>
|
|
<DTS:Property DTS:Name="Description">Secondary Database Connection</DTS:Property>
|
|
<DTS:Property DTS:Name="RetainSameConnection">True</DTS:Property>
|
|
</DTS:Properties>
|
|
</DTS:ConnectionManager>
|
|
|
|
<!-- FTP Connection -->
|
|
<DTS:ConnectionManager
|
|
DTS:refId="Package.ConnectionManagers[FTPConnection]"
|
|
DTS:CreationName="FTP">
|
|
<DTS:Properties>
|
|
<DTS:Property DTS:Name="ServerName">ftpserver.com</DTS:Property>
|
|
<DTS:Property DTS:Name="ServerUserName">ftpuser</DTS:Property>
|
|
<DTS:Property DTS:Name="ServerPassword">ftppassword</DTS:Property>
|
|
<DTS:Property DTS:Name="ServerPort">21</DTS:Property>
|
|
<DTS:Property DTS:Name="Timeout">60</DTS:Property>
|
|
<DTS:Property DTS:Name="UsePassiveMode">True</DTS:Property>
|
|
</DTS:Properties>
|
|
</DTS:ConnectionManager>
|
|
|
|
<!-- SMTP Connection -->
|
|
<DTS:ConnectionManager
|
|
DTS:refId="Package.ConnectionManagers[SMTPConnection]"
|
|
DTS:CreationName="SMTP">
|
|
<DTS:Properties>
|
|
<DTS:Property DTS:Name="SmtpServer">smtp.mailserver.com</DTS:Property>
|
|
<DTS:Property DTS:Name="Port">25</DTS:Property>
|
|
<DTS:Property DTS:Name="UserName">smtpuser</DTS:Property>
|
|
<DTS:Property DTS:Name="Password">smtppassword</DTS:Property>
|
|
<DTS:Property DTS:Name="EnableSsl">True</DTS:Property>
|
|
<DTS:Property DTS:Name="Description">SMTP Server Connection for Emails</DTS:Property>
|
|
</DTS:Properties>
|
|
</DTS:ConnectionManager>
|
|
|
|
</DTS:ConnectionManagers>
|
|
|
|
<!-- Tasks or Control Flow Elements -->
|
|
<DTS:Executables>
|
|
<!-- Sample Execute SQL Task using Database 1 -->
|
|
<DTS:Executable
|
|
DTS:refId="Package.Executable[SQLTask1]"
|
|
DTS:CreationName="Microsoft.SqlServer.Dts.Tasks.ExecuteSQLTask.ExecuteSQLTask">
|
|
<DTS:Properties>
|
|
<DTS:Property DTS:Name="Connection">Package.ConnectionManagers[DB1]</DTS:Property>
|
|
<DTS:Property DTS:Name="SQLStatement">SELECT * FROM Table1;</DTS:Property>
|
|
</DTS:Properties>
|
|
</DTS:Executable>
|
|
|
|
<!-- Sample FTP Task -->
|
|
<DTS:Executable
|
|
DTS:refId="Package.Executable[FTPTask1]"
|
|
DTS:CreationName="Microsoft.SqlServer.Dts.Tasks.FtpTask.FtpTask">
|
|
<DTS:Properties>
|
|
<DTS:Property DTS:Name="Connection">Package.ConnectionManagers[FTPConnection]</DTS:Property>
|
|
<DTS:Property DTS:Name="RemotePath">/data/</DTS:Property>
|
|
<DTS:Property DTS:Name="LocalPath">C:\data\</DTS:Property>
|
|
<DTS:Property DTS:Name="Operation">Receive</DTS:Property>
|
|
</DTS:Properties>
|
|
</DTS:Executable>
|
|
|
|
<!-- Sample Email Task -->
|
|
<DTS:Executable
|
|
DTS:refId="Package.Executable[EmailTask1]"
|
|
DTS:CreationName="Microsoft.SqlServer.Dts.Tasks.SendMailTask.SendMailTask">
|
|
<DTS:Properties>
|
|
<DTS:Property DTS:Name="Connection">Package.ConnectionManagers[SMTPConnection]</DTS:Property>
|
|
<DTS:Property DTS:Name="From">noreply@mailserver.com</DTS:Property>
|
|
<DTS:Property DTS:Name="To">user@example.com</DTS:Property>
|
|
<DTS:Property DTS:Name="Subject">SSIS Task Notification</DTS:Property>
|
|
<DTS:Property DTS:Name="MessageSource">Task has been completed successfully.</DTS:Property>
|
|
</DTS:Properties>
|
|
</DTS:Executable>
|
|
|
|
</DTS:Executables>
|
|
</DTS:Executable>
|