├── 9781484206393.jpg ├── Chapter 05 └── Chapter 05 │ ├── Archive │ ├── Customers_1.csv │ ├── Customers_2.csv │ └── Customers_3.csv │ ├── New folder │ └── Chapter 05 - File Properties │ │ ├── Chapter 05 - File Properties.sln │ │ ├── Chapter 05 - File Properties.v12.suo │ │ └── Integration Services Project1 │ │ ├── 01 - Get File Properties.dtsx │ │ ├── 02 - Delete Files Older than X Days.dtsx │ │ ├── 03 - Check File Is Locked.dtsx │ │ ├── 04 - Foreach Ordered File Enumerator.dtsx │ │ ├── Chapter 05 - File Properties.dtproj │ │ ├── Chapter 05 - File Properties.dtproj.user │ │ ├── Integration Services Project1.database │ │ ├── Integration Services Project1.dtproj.user │ │ ├── Project.params │ │ ├── bin │ │ └── Development │ │ │ └── Chapter 05 - File Properties.ispac │ │ └── obj │ │ └── Development │ │ ├── 01 - Get Directory Properties.dtsx │ │ ├── 01 - Get File Properties.dtsx │ │ ├── 02 - Delete Files Older than X Days.dtsx │ │ ├── 03 - Check File Is Locked.dtsx │ │ ├── 04 - Foreach Ordered File Enumerator.dtsx │ │ ├── BuildLog.xml │ │ ├── Chapter 05 - File Properties.dtproj │ │ └── Project.params │ └── Source Files │ ├── Customers_1.csv │ ├── Customers_2.csv │ └── Customers_3.csv ├── Chapter 1 (SSIS 2014).zip ├── Chapter 10 (SSIS 2012).zip ├── Chapter 11 (SSIS 2014) (1).zip ├── Chapter 12 (SSIS 2012).zip ├── Chapter 13 (SSIS 2014).zip ├── Chapter 14 (SSIS 2012).zip ├── Chapter 15 (SSIS 2012).zip ├── Chapter 16 (vs2012).zip ├── Chapter 19 - RowNumber.zip ├── Chapter 2 (SSIS 2012).zip ├── Chapter 20 (SSIS 2012).zip ├── Chapter 21 └── Chapter 21 │ ├── MySsisApplication │ ├── MySsisApplication.sln │ ├── MySsisApplication.v12.suo │ ├── MySsisApplicationC │ │ ├── App.config │ │ ├── Form1.Designer.cs │ │ ├── Form1.cs │ │ ├── Form1.resx │ │ ├── MySsisApplicationC.csproj │ │ ├── Program.cs │ │ ├── Properties │ │ │ ├── AssemblyInfo.cs │ │ │ ├── Resources.Designer.cs │ │ │ ├── Resources.resx │ │ │ ├── Settings.Designer.cs │ │ │ └── Settings.settings │ │ ├── bin │ │ │ └── Debug │ │ │ │ ├── MySsisApplicationC.exe │ │ │ │ ├── MySsisApplicationC.exe.config │ │ │ │ ├── MySsisApplicationC.pdb │ │ │ │ ├── MySsisApplicationC.vshost.exe │ │ │ │ ├── MySsisApplicationC.vshost.exe.config │ │ │ │ └── MySsisApplicationC.vshost.exe.manifest │ │ └── obj │ │ │ └── Debug │ │ │ ├── DesignTimeResolveAssemblyReferences.cache │ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ │ │ ├── MySsisApplicationC.Form1.resources │ │ │ ├── MySsisApplicationC.Properties.Resources.resources │ │ │ ├── MySsisApplicationC.csproj.FileListAbsolute.txt │ │ │ ├── MySsisApplicationC.csproj.GenerateResource.Cache │ │ │ ├── MySsisApplicationC.csprojResolveAssemblyReference.cache │ │ │ ├── MySsisApplicationC.exe │ │ │ ├── MySsisApplicationC.pdb │ │ │ └── TempPE │ │ │ └── Properties.Resources.Designer.cs.dll │ └── MySsisApplicationVB │ │ ├── Form1.Designer.vb │ │ ├── Form1.resx │ │ ├── Form1.vb │ │ ├── My Project │ │ ├── Application.Designer.vb │ │ ├── Application.myapp │ │ ├── AssemblyInfo.vb │ │ ├── Resources.Designer.vb │ │ ├── Resources.resx │ │ ├── Settings.Designer.vb │ │ └── Settings.settings │ │ ├── MySsisApplicationVB.vbproj │ │ ├── app.config │ │ ├── bin │ │ └── Debug │ │ │ ├── MySsisApplicationVB.exe │ │ │ ├── MySsisApplicationVB.exe.config │ │ │ ├── MySsisApplicationVB.pdb │ │ │ ├── MySsisApplicationVB.vshost.exe │ │ │ ├── MySsisApplicationVB.vshost.exe.config │ │ │ ├── MySsisApplicationVB.vshost.exe.manifest │ │ │ └── MySsisApplicationVB.xml │ │ └── obj │ │ └── Debug │ │ ├── DesignTimeResolveAssemblyReferences.cache │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ │ ├── MySsisApplicationVB.Form1.resources │ │ ├── MySsisApplicationVB.Resources.resources │ │ ├── MySsisApplicationVB.exe │ │ ├── MySsisApplicationVB.pdb │ │ ├── MySsisApplicationVB.vbproj.FileListAbsolute.txt │ │ ├── MySsisApplicationVB.vbproj.GenerateResource.Cache │ │ ├── MySsisApplicationVB.vbprojResolveAssemblyReference.cache │ │ ├── MySsisApplicationVB.xml │ │ └── TempPE │ │ └── My Project.Resources.Designer.vb.dll │ └── MySsisApplication2 │ ├── MySsisApplication2.sln │ ├── MySsisApplication2.v12.suo │ ├── MySsisApplication2C │ ├── Form1.Designer.cs │ ├── Form1.cs │ ├── Form1.resx │ ├── MySsisApplication2C.csproj │ ├── Program.cs │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ ├── Resources.Designer.cs │ │ ├── Resources.resx │ │ ├── Settings.Designer.cs │ │ └── Settings.settings │ ├── bin │ │ └── Debug │ │ │ ├── MySsisApplication2C.exe │ │ │ ├── MySsisApplication2C.pdb │ │ │ ├── MySsisApplication2C.vshost.exe │ │ │ └── MySsisApplication2C.vshost.exe.manifest │ └── obj │ │ └── Debug │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ │ ├── MySsisApplication2C.Form1.resources │ │ ├── MySsisApplication2C.Properties.Resources.resources │ │ ├── MySsisApplication2C.csproj.FileListAbsolute.txt │ │ ├── MySsisApplication2C.csproj.GenerateResource.Cache │ │ ├── MySsisApplication2C.csprojResolveAssemblyReference.cache │ │ ├── MySsisApplication2C.exe │ │ └── MySsisApplication2C.pdb │ └── MySsisApplication2VB │ ├── Form1.Designer.vb │ ├── Form1.resx │ ├── Form1.vb │ ├── My Project │ ├── Application.Designer.vb │ ├── Application.myapp │ ├── AssemblyInfo.vb │ ├── Resources.Designer.vb │ ├── Resources.resx │ ├── Settings.Designer.vb │ └── Settings.settings │ ├── MySsisApplication2VB.vbproj │ ├── bin │ └── Debug │ │ ├── MySsisApplication2VB.exe │ │ ├── MySsisApplication2VB.pdb │ │ ├── MySsisApplication2VB.vshost.exe │ │ ├── MySsisApplication2VB.vshost.exe.manifest │ │ └── MySsisApplication2VB.xml │ └── obj │ └── Debug │ ├── DesignTimeResolveAssemblyReferences.cache │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ ├── MySsisApplication2VB.Form1.resources │ ├── MySsisApplication2VB.Resources.resources │ ├── MySsisApplication2VB.exe │ ├── MySsisApplication2VB.pdb │ ├── MySsisApplication2VB.vbproj.FileListAbsolute.txt │ ├── MySsisApplication2VB.vbproj.GenerateResource.Cache │ ├── MySsisApplication2VB.vbprojResolveAssemblyReference.cache │ ├── MySsisApplication2VB.xml │ └── TempPE │ └── My Project.Resources.Designer.vb.dll ├── Chapter 3 └── Chapter 3 │ ├── CS Samples.txt │ └── VB Samples.txt ├── Chapter 4 (SSIS 2012) (1).zip ├── Chapter 5 (SSIS 2014).zip ├── Chapter 6 (SSIS 2012) (1).zip ├── Chapter 7 (SSIS 2014) (1).zip ├── Chapter 8 (SSIS 2012).zip ├── Chapter 9 (SSIS 2012).zip ├── LICENSE.txt ├── README.md └── contributing.md /9781484206393.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/9781484206393.jpg -------------------------------------------------------------------------------- /Chapter 05/Chapter 05/Archive/Customers_1.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 05/Chapter 05/Archive/Customers_1.csv -------------------------------------------------------------------------------- /Chapter 05/Chapter 05/Archive/Customers_2.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 05/Chapter 05/Archive/Customers_2.csv -------------------------------------------------------------------------------- /Chapter 05/Chapter 05/Archive/Customers_3.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 05/Chapter 05/Archive/Customers_3.csv -------------------------------------------------------------------------------- /Chapter 05/Chapter 05/New folder/Chapter 05 - File Properties/Chapter 05 - File Properties.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{159641D6-6404-4A2A-AE62-294DE0FE8301}") = "Chapter 05 - File Properties", "Integration Services Project1\Chapter 05 - File Properties.dtproj", "{2F7DE121-969B-4414-A8EE-7E0AD11DC272}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Development|Default = Development|Default 11 | EndGlobalSection 12 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 13 | {2F7DE121-969B-4414-A8EE-7E0AD11DC272}.Development|Default.ActiveCfg = Development 14 | {2F7DE121-969B-4414-A8EE-7E0AD11DC272}.Development|Default.Build.0 = Development 15 | EndGlobalSection 16 | GlobalSection(SolutionProperties) = preSolution 17 | HideSolutionNode = FALSE 18 | EndGlobalSection 19 | EndGlobal 20 | -------------------------------------------------------------------------------- /Chapter 05/Chapter 05/New folder/Chapter 05 - File Properties/Chapter 05 - File Properties.v12.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 05/Chapter 05/New folder/Chapter 05 - File Properties/Chapter 05 - File Properties.v12.suo -------------------------------------------------------------------------------- /Chapter 05/Chapter 05/New folder/Chapter 05 - File Properties/Integration Services Project1/Chapter 05 - File Properties.dtproj.user: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Development 6 | 7 | true 8 | 9 | 10 | false 11 | true 12 | 13 | 14 | LastModifiedTime 15 | LastModifiedTime 16 | 2014-12-20T21:59:36.0077518Z 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /Chapter 05/Chapter 05/New folder/Chapter 05 - File Properties/Integration Services Project1/Integration Services Project1.database: -------------------------------------------------------------------------------- 1 |  2 | Integration Services Project1 3 | Integration Services Project1 4 | 0001-01-01T00:00:00Z 5 | 0001-01-01T00:00:00Z 6 | 0001-01-01T00:00:00Z 7 | Unprocessed 8 | 0001-01-01T00:00:00Z 9 | 10 | Default 11 | Unchanged 12 | 13 | -------------------------------------------------------------------------------- /Chapter 05/Chapter 05/New folder/Chapter 05 - File Properties/Integration Services Project1/Integration Services Project1.dtproj.user: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Development 6 | 7 | true 8 | 9 | 10 | false 11 | true 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /Chapter 05/Chapter 05/New folder/Chapter 05 - File Properties/Integration Services Project1/Project.params: -------------------------------------------------------------------------------- 1 |  2 | -------------------------------------------------------------------------------- /Chapter 05/Chapter 05/New folder/Chapter 05 - File Properties/Integration Services Project1/bin/Development/Chapter 05 - File Properties.ispac: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 05/Chapter 05/New folder/Chapter 05 - File Properties/Integration Services Project1/bin/Development/Chapter 05 - File Properties.ispac -------------------------------------------------------------------------------- /Chapter 05/Chapter 05/New folder/Chapter 05 - File Properties/Integration Services Project1/obj/Development/BuildLog.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Chapter 05 - File Properties 5 | 2015-01-04T02:25:44.8239512Z 6 | EncryptSensitiveWithUserKey 7 | 8 | 9 | 10 | 01 - Get File Properties.dtsx 11 | 2014-12-21T01:27:35.7893031Z 12 | EncryptSensitiveWithUserKey 13 | 14 | 15 | 02 - Delete Files Older than X Days.dtsx 16 | 2014-12-24T10:54:22.6810812Z 17 | EncryptSensitiveWithUserKey 18 | 19 | 20 | 03 - Check File Is Locked.dtsx 21 | 2015-01-03T20:51:27.1657689Z 22 | EncryptSensitiveWithUserKey 23 | 24 | 25 | 04 - Foreach Ordered File Enumerator.dtsx 26 | 2015-01-04T02:25:17.8193456Z 27 | EncryptSensitiveWithUserKey 28 | 29 | 30 | -------------------------------------------------------------------------------- /Chapter 05/Chapter 05/New folder/Chapter 05 - File Properties/Integration Services Project1/obj/Development/Project.params: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Chapter 05/Chapter 05/Source Files/Customers_1.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 05/Chapter 05/Source Files/Customers_1.csv -------------------------------------------------------------------------------- /Chapter 05/Chapter 05/Source Files/Customers_2.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 05/Chapter 05/Source Files/Customers_2.csv -------------------------------------------------------------------------------- /Chapter 05/Chapter 05/Source Files/Customers_3.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 05/Chapter 05/Source Files/Customers_3.csv -------------------------------------------------------------------------------- /Chapter 1 (SSIS 2014).zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 1 (SSIS 2014).zip -------------------------------------------------------------------------------- /Chapter 10 (SSIS 2012).zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 10 (SSIS 2012).zip -------------------------------------------------------------------------------- /Chapter 11 (SSIS 2014) (1).zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 11 (SSIS 2014) (1).zip -------------------------------------------------------------------------------- /Chapter 12 (SSIS 2012).zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 12 (SSIS 2012).zip -------------------------------------------------------------------------------- /Chapter 13 (SSIS 2014).zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 13 (SSIS 2014).zip -------------------------------------------------------------------------------- /Chapter 14 (SSIS 2012).zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 14 (SSIS 2012).zip -------------------------------------------------------------------------------- /Chapter 15 (SSIS 2012).zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 15 (SSIS 2012).zip -------------------------------------------------------------------------------- /Chapter 16 (vs2012).zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 16 (vs2012).zip -------------------------------------------------------------------------------- /Chapter 19 - RowNumber.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 19 - RowNumber.zip -------------------------------------------------------------------------------- /Chapter 2 (SSIS 2012).zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 2 (SSIS 2012).zip -------------------------------------------------------------------------------- /Chapter 20 (SSIS 2012).zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 20 (SSIS 2012).zip -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplication.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.31101.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MySsisApplicationC", "MySsisApplicationC\MySsisApplicationC.csproj", "{B0E10986-659E-4933-9F5C-F28FD8D36D1F}" 7 | EndProject 8 | Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "MySsisApplicationVB", "MySsisApplicationVB\MySsisApplicationVB.vbproj", "{51FC92E8-A57E-46C5-8702-FB357C94380D}" 9 | EndProject 10 | Global 11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 12 | Debug|Any CPU = Debug|Any CPU 13 | Release|Any CPU = Release|Any CPU 14 | EndGlobalSection 15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 16 | {B0E10986-659E-4933-9F5C-F28FD8D36D1F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 17 | {B0E10986-659E-4933-9F5C-F28FD8D36D1F}.Debug|Any CPU.Build.0 = Debug|Any CPU 18 | {B0E10986-659E-4933-9F5C-F28FD8D36D1F}.Release|Any CPU.ActiveCfg = Release|Any CPU 19 | {B0E10986-659E-4933-9F5C-F28FD8D36D1F}.Release|Any CPU.Build.0 = Release|Any CPU 20 | {51FC92E8-A57E-46C5-8702-FB357C94380D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 21 | {51FC92E8-A57E-46C5-8702-FB357C94380D}.Debug|Any CPU.Build.0 = Debug|Any CPU 22 | {51FC92E8-A57E-46C5-8702-FB357C94380D}.Release|Any CPU.ActiveCfg = Release|Any CPU 23 | {51FC92E8-A57E-46C5-8702-FB357C94380D}.Release|Any CPU.Build.0 = Release|Any CPU 24 | EndGlobalSection 25 | GlobalSection(SolutionProperties) = preSolution 26 | HideSolutionNode = FALSE 27 | EndGlobalSection 28 | EndGlobal 29 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplication.v12.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication/MySsisApplication.v12.suo -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationC/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationC/Form1.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace MySsisApplicationC 2 | { 3 | partial class Form1 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | this.lblStatus = new System.Windows.Forms.Label(); 32 | this.btnStart = new System.Windows.Forms.Button(); 33 | this.lbLog = new System.Windows.Forms.ListBox(); 34 | this.SuspendLayout(); 35 | // 36 | // lblStatus 37 | // 38 | this.lblStatus.AutoSize = true; 39 | this.lblStatus.Location = new System.Drawing.Point(14, 61); 40 | this.lblStatus.Name = "lblStatus"; 41 | this.lblStatus.Size = new System.Drawing.Size(83, 17); 42 | this.lblStatus.TabIndex = 3; 43 | this.lblStatus.Text = "StatusLabel"; 44 | // 45 | // btnStart 46 | // 47 | this.btnStart.Location = new System.Drawing.Point(17, 24); 48 | this.btnStart.Name = "btnStart"; 49 | this.btnStart.Size = new System.Drawing.Size(75, 23); 50 | this.btnStart.TabIndex = 2; 51 | this.btnStart.Text = "Start"; 52 | this.btnStart.UseVisualStyleBackColor = true; 53 | this.btnStart.Click += new System.EventHandler(this.btnStart_Click); 54 | // 55 | // lbLog 56 | // 57 | this.lbLog.FormattingEnabled = true; 58 | this.lbLog.ItemHeight = 16; 59 | this.lbLog.Location = new System.Drawing.Point(13, 90); 60 | this.lbLog.Name = "lbLog"; 61 | this.lbLog.Size = new System.Drawing.Size(257, 148); 62 | this.lbLog.TabIndex = 4; 63 | // 64 | // Form1 65 | // 66 | this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); 67 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 68 | this.ClientSize = new System.Drawing.Size(282, 253); 69 | this.Controls.Add(this.lbLog); 70 | this.Controls.Add(this.lblStatus); 71 | this.Controls.Add(this.btnStart); 72 | this.Name = "Form1"; 73 | this.Text = "Form1"; 74 | this.ResumeLayout(false); 75 | this.PerformLayout(); 76 | 77 | } 78 | 79 | #endregion 80 | 81 | private System.Windows.Forms.Label lblStatus; 82 | private System.Windows.Forms.Button btnStart; 83 | private System.Windows.Forms.ListBox lbLog; 84 | } 85 | } 86 | 87 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationC/Form1.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Windows.Forms; 9 | 10 | #region CustomNamespace 11 | using Microsoft.SqlServer.Dts.Runtime; 12 | #endregion 13 | 14 | 15 | namespace MySsisApplicationC 16 | { 17 | public partial class Form1 : Form 18 | { 19 | public Form1() 20 | { 21 | InitializeComponent(); 22 | } 23 | 24 | private void btnStart_Click(object sender, EventArgs e) 25 | { 26 | // Instantiate SSIS application object 27 | Microsoft.SqlServer.Dts.Runtime.Application myApplication = new Microsoft.SqlServer.Dts.Runtime.Application(); 28 | 29 | // Load package from file system (use LoadFromSqlServer for SQL Server based packages) 30 | lblStatus.Text = "Loading package from file system."; 31 | Package myPackage = myApplication.LoadPackage(@"C:\Users\jvanrossum\OneDrive\Documenten\Extending SSIS with .Net\02_Code\2012\Extending SSIS with .NET\Chapter 21\Package.dtsx", null); 32 | 33 | // Optional set the value from one of the SSIS package variables 34 | myPackage.Variables["User::myVar"].Value = "test123"; 35 | 36 | // Execute package 37 | lblStatus.Text = "Executing package"; 38 | DTSExecResult myResult = myPackage.Execute(); 39 | 40 | // Show the execution result 41 | lblStatus.Text = "Package result: " + myResult.ToString(); 42 | 43 | // https://msdn.microsoft.com/en-us/library/ms136090(v=sql.120).aspx 44 | 45 | 46 | ////////////////////////////////////////// 47 | // Code for showing warnings and errors // 48 | ////////////////////////////////////////// 49 | 50 | // Create a temporary table to store warnings and errors 51 | DataTable myLogTable = new DataTable("myLogTable"); 52 | myLogTable.Columns.Add("LogTime", typeof(DateTime)); 53 | myLogTable.Columns.Add("Source", typeof(string)); 54 | myLogTable.Columns.Add("Message", typeof(string)); 55 | 56 | // Loop through all warnings and add them to the table 57 | foreach (DtsWarning packageWarning in myPackage.Warnings) 58 | { 59 | myLogTable.Rows.Add(Convert.ToDateTime(packageWarning.TimeStamp), packageWarning.Source, packageWarning.Description); 60 | } 61 | 62 | // Loop through all errors and add them to the table 63 | foreach (DtsError packageError in myPackage.Errors) 64 | { 65 | myLogTable.Rows.Add(Convert.ToDateTime(packageError.TimeStamp), packageError.Source, packageError.Description); 66 | } 67 | 68 | // Create a sorted view and then make a new datatable with it 69 | myLogTable.DefaultView.Sort = "LogTime"; 70 | DataTable myLogTableSorted = myLogTable.DefaultView.ToTable(); 71 | 72 | // Cleanup resource 73 | myLogTable.Dispose(); 74 | 75 | // Loop through the new sorted dataset and add rows to the listbox 76 | foreach (DataRow row in myLogTableSorted.Rows) 77 | { 78 | lbLog.Items.Add(row.Field(0).ToLongTimeString() + " - " + row.Field(1) + " - " + row.Field(2)); 79 | } 80 | 81 | // Cleanup resource 82 | myLogTableSorted.Dispose(); 83 | } 84 | } 85 | } 86 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationC/Form1.resx: -------------------------------------------------------------------------------- 1 |  2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationC/MySsisApplicationC.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {B0E10986-659E-4933-9F5C-F28FD8D36D1F} 8 | WinExe 9 | Properties 10 | MySsisApplicationC 11 | MySsisApplicationC 12 | v4.0 13 | 512 14 | 15 | 16 | 17 | AnyCPU 18 | true 19 | full 20 | false 21 | bin\Debug\ 22 | DEBUG;TRACE 23 | prompt 24 | 4 25 | 26 | 27 | AnyCPU 28 | pdbonly 29 | true 30 | bin\Release\ 31 | TRACE 32 | prompt 33 | 4 34 | 35 | 36 | 37 | False 38 | ..\..\..\..\..\..\..\..\..\..\..\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.SqlServer.ManagedDTS\v4.0_11.0.0.0__89845dcd8080cc91\Microsoft.SqlServer.ManagedDTS.dll 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | Form 53 | 54 | 55 | Form1.cs 56 | 57 | 58 | 59 | 60 | Form1.cs 61 | 62 | 63 | ResXFileCodeGenerator 64 | Resources.Designer.cs 65 | Designer 66 | 67 | 68 | True 69 | Resources.resx 70 | True 71 | 72 | 73 | 74 | SettingsSingleFileGenerator 75 | Settings.Designer.cs 76 | 77 | 78 | True 79 | Settings.settings 80 | True 81 | 82 | 83 | 84 | 91 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationC/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Windows.Forms; 5 | 6 | namespace MySsisApplicationC 7 | { 8 | static class Program 9 | { 10 | /// 11 | /// The main entry point for the application. 12 | /// 13 | [STAThread] 14 | static void Main() 15 | { 16 | Application.EnableVisualStyles(); 17 | Application.SetCompatibleTextRenderingDefault(false); 18 | Application.Run(new Form1()); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationC/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("MySsisApplicationC")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("MySsisApplicationC")] 13 | [assembly: AssemblyCopyright("Copyright © 2015")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("e4a31305-32b3-4e50-bc96-3b07c62f0a6a")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationC/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace MySsisApplicationC.Properties { 12 | using System; 13 | 14 | 15 | /// 16 | /// A strongly-typed resource class, for looking up localized strings, etc. 17 | /// 18 | // This class was auto-generated by the StronglyTypedResourceBuilder 19 | // class via a tool like ResGen or Visual Studio. 20 | // To add or remove a member, edit your .ResX file then rerun ResGen 21 | // with the /str option, or rebuild your VS project. 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | internal class Resources { 26 | 27 | private static global::System.Resources.ResourceManager resourceMan; 28 | 29 | private static global::System.Globalization.CultureInfo resourceCulture; 30 | 31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 32 | internal Resources() { 33 | } 34 | 35 | /// 36 | /// Returns the cached ResourceManager instance used by this class. 37 | /// 38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 39 | internal static global::System.Resources.ResourceManager ResourceManager { 40 | get { 41 | if (object.ReferenceEquals(resourceMan, null)) { 42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("MySsisApplicationC.Properties.Resources", typeof(Resources).Assembly); 43 | resourceMan = temp; 44 | } 45 | return resourceMan; 46 | } 47 | } 48 | 49 | /// 50 | /// Overrides the current thread's CurrentUICulture property for all 51 | /// resource lookups using this strongly typed resource class. 52 | /// 53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 54 | internal static global::System.Globalization.CultureInfo Culture { 55 | get { 56 | return resourceCulture; 57 | } 58 | set { 59 | resourceCulture = value; 60 | } 61 | } 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationC/Properties/Resources.resx: -------------------------------------------------------------------------------- 1 |  2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | text/microsoft-resx 107 | 108 | 109 | 2.0 110 | 111 | 112 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 113 | 114 | 115 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationC/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace MySsisApplicationC.Properties { 12 | 13 | 14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "12.0.0.0")] 16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { 17 | 18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 19 | 20 | public static Settings Default { 21 | get { 22 | return defaultInstance; 23 | } 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationC/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationC/bin/Debug/MySsisApplicationC.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationC/bin/Debug/MySsisApplicationC.exe -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationC/bin/Debug/MySsisApplicationC.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationC/bin/Debug/MySsisApplicationC.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationC/bin/Debug/MySsisApplicationC.pdb -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationC/bin/Debug/MySsisApplicationC.vshost.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationC/bin/Debug/MySsisApplicationC.vshost.exe -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationC/bin/Debug/MySsisApplicationC.vshost.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationC/bin/Debug/MySsisApplicationC.vshost.exe.manifest: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationC/obj/Debug/DesignTimeResolveAssemblyReferences.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationC/obj/Debug/DesignTimeResolveAssemblyReferences.cache -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationC/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationC/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationC/obj/Debug/MySsisApplicationC.Form1.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationC/obj/Debug/MySsisApplicationC.Form1.resources -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationC/obj/Debug/MySsisApplicationC.Properties.Resources.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationC/obj/Debug/MySsisApplicationC.Properties.Resources.resources -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationC/obj/Debug/MySsisApplicationC.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | C:\Users\jvanrossum\OneDrive\Documenten\Extending SSIS with .Net\02_Code\2012\Extending SSIS with .NET\Chapter 21\MySsisApplication\MySsisApplicationC\obj\Debug\MySsisApplicationC.csprojResolveAssemblyReference.cache 2 | C:\Users\jvanrossum\OneDrive\Documenten\Extending SSIS with .Net\02_Code\2012\Extending SSIS with .NET\Chapter 21\MySsisApplication\MySsisApplicationC\obj\Debug\MySsisApplicationC.Form1.resources 3 | C:\Users\jvanrossum\OneDrive\Documenten\Extending SSIS with .Net\02_Code\2012\Extending SSIS with .NET\Chapter 21\MySsisApplication\MySsisApplicationC\obj\Debug\MySsisApplicationC.Properties.Resources.resources 4 | C:\Users\jvanrossum\OneDrive\Documenten\Extending SSIS with .Net\02_Code\2012\Extending SSIS with .NET\Chapter 21\MySsisApplication\MySsisApplicationC\obj\Debug\MySsisApplicationC.csproj.GenerateResource.Cache 5 | C:\Users\jvanrossum\OneDrive\Documenten\Extending SSIS with .Net\02_Code\2012\Extending SSIS with .NET\Chapter 21\MySsisApplication\MySsisApplicationC\bin\Debug\MySsisApplicationC.exe 6 | C:\Users\jvanrossum\OneDrive\Documenten\Extending SSIS with .Net\02_Code\2012\Extending SSIS with .NET\Chapter 21\MySsisApplication\MySsisApplicationC\bin\Debug\MySsisApplicationC.pdb 7 | C:\Users\jvanrossum\OneDrive\Documenten\Extending SSIS with .Net\02_Code\2012\Extending SSIS with .NET\Chapter 21\MySsisApplication\MySsisApplicationC\obj\Debug\MySsisApplicationC.exe 8 | C:\Users\jvanrossum\OneDrive\Documenten\Extending SSIS with .Net\02_Code\2012\Extending SSIS with .NET\Chapter 21\MySsisApplication\MySsisApplicationC\obj\Debug\MySsisApplicationC.pdb 9 | C:\Users\jvanrossum\OneDrive\Documenten\Extending SSIS with .Net\02_Code\2012\Extending SSIS with .NET\Chapter 21\MySsisApplication\MySsisApplicationC\bin\Debug\MySsisApplicationC.exe.config 10 | D:\Chapter 21\MySsisApplication\MySsisApplicationC\bin\Debug\MySsisApplicationC.exe.config 11 | D:\Chapter 21\MySsisApplication\MySsisApplicationC\obj\Debug\MySsisApplicationC.exe 12 | D:\Chapter 21\MySsisApplication\MySsisApplicationC\obj\Debug\MySsisApplicationC.pdb 13 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationC/obj/Debug/MySsisApplicationC.csproj.GenerateResource.Cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationC/obj/Debug/MySsisApplicationC.csproj.GenerateResource.Cache -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationC/obj/Debug/MySsisApplicationC.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationC/obj/Debug/MySsisApplicationC.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationC/obj/Debug/MySsisApplicationC.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationC/obj/Debug/MySsisApplicationC.exe -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationC/obj/Debug/MySsisApplicationC.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationC/obj/Debug/MySsisApplicationC.pdb -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationC/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationC/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationVB/Form1.Designer.vb: -------------------------------------------------------------------------------- 1 |  _ 2 | Partial Class Form1 3 | Inherits System.Windows.Forms.Form 4 | 5 | 'Form overrides dispose to clean up the component list. 6 | _ 7 | Protected Overrides Sub Dispose(ByVal disposing As Boolean) 8 | Try 9 | If disposing AndAlso components IsNot Nothing Then 10 | components.Dispose() 11 | End If 12 | Finally 13 | MyBase.Dispose(disposing) 14 | End Try 15 | End Sub 16 | 17 | 'Required by the Windows Form Designer 18 | Private components As System.ComponentModel.IContainer 19 | 20 | 'NOTE: The following procedure is required by the Windows Form Designer 21 | 'It can be modified using the Windows Form Designer. 22 | 'Do not modify it using the code editor. 23 | _ 24 | Private Sub InitializeComponent() 25 | Me.lblStatus = New System.Windows.Forms.Label() 26 | Me.btnStart = New System.Windows.Forms.Button() 27 | Me.lbLog = New System.Windows.Forms.ListBox() 28 | Me.SuspendLayout() 29 | ' 30 | 'lblStatus 31 | ' 32 | Me.lblStatus.AutoSize = True 33 | Me.lblStatus.Location = New System.Drawing.Point(20, 68) 34 | Me.lblStatus.Name = "lblStatus" 35 | Me.lblStatus.Size = New System.Drawing.Size(243, 17) 36 | Me.lblStatus.TabIndex = 5 37 | Me.lblStatus.Text = "StatusLabel " 38 | ' 39 | 'btnStart 40 | ' 41 | Me.btnStart.Location = New System.Drawing.Point(23, 23) 42 | Me.btnStart.Name = "btnStart" 43 | Me.btnStart.Size = New System.Drawing.Size(75, 23) 44 | Me.btnStart.TabIndex = 4 45 | Me.btnStart.Text = "Start" 46 | Me.btnStart.UseVisualStyleBackColor = True 47 | ' 48 | 'lbLog 49 | ' 50 | Me.lbLog.FormattingEnabled = True 51 | Me.lbLog.ItemHeight = 16 52 | Me.lbLog.Location = New System.Drawing.Point(23, 98) 53 | Me.lbLog.Name = "lbLog" 54 | Me.lbLog.Size = New System.Drawing.Size(247, 132) 55 | Me.lbLog.TabIndex = 6 56 | ' 57 | 'Form1 58 | ' 59 | Me.AutoScaleDimensions = New System.Drawing.SizeF(8.0!, 16.0!) 60 | Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font 61 | Me.ClientSize = New System.Drawing.Size(282, 253) 62 | Me.Controls.Add(Me.lbLog) 63 | Me.Controls.Add(Me.lblStatus) 64 | Me.Controls.Add(Me.btnStart) 65 | Me.Name = "Form1" 66 | Me.Text = "Form1" 67 | Me.ResumeLayout(False) 68 | Me.PerformLayout() 69 | 70 | End Sub 71 | Private WithEvents lblStatus As System.Windows.Forms.Label 72 | Private WithEvents btnStart As System.Windows.Forms.Button 73 | Friend WithEvents lbLog As System.Windows.Forms.ListBox 74 | 75 | End Class 76 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationVB/Form1.resx: -------------------------------------------------------------------------------- 1 |  2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationVB/Form1.vb: -------------------------------------------------------------------------------- 1 | #Region "CustomNamespace" 2 | Imports Microsoft.SqlServer.Dts.Runtime 3 | #End Region 4 | 5 | Public Class Form1 6 | 7 | Private Sub btnStart_Click(sender As Object, e As EventArgs) Handles btnStart.Click 8 | ' Instantiate SSIS application object 9 | Dim myApplication As Application = New Application() 10 | 11 | ' Load package from file system (use LoadFromSqlServer for SQL Server based packages) 12 | lblStatus.Text = "Loading package from file system." 13 | Dim myPackage As Package = myApplication.LoadPackage("C:\Users\jvanrossum\OneDrive\Documenten\Extending SSIS with .Net\02_Code\2012\Extending SSIS with .NET\Chapter 21\Package.dtsx", Nothing) 14 | 15 | ' Optional set the value from one of the SSIS package variables 16 | myPackage.Variables("User::myVar").Value = "test123" 17 | 18 | ' Execute package 19 | lblStatus.Text = "Executing package" 20 | Dim myResult As DTSExecResult = myPackage.Execute() 21 | 22 | ' Show the execution result 23 | lblStatus.Text = "Package result: " + myResult.ToString() 24 | 25 | '''''''''''''''''''''''''''''''''''''''' 26 | ' Code for showing warnings and errors ' 27 | '''''''''''''''''''''''''''''''''''''''' 28 | 29 | ' Create a temporary table to store warnings and errors 30 | Dim myLogTable As DataTable = New DataTable("myLogTable") 31 | myLogTable.Columns.Add("LogTime", GetType(DateTime)) 32 | myLogTable.Columns.Add("Source", GetType(String)) 33 | myLogTable.Columns.Add("Message", GetType(String)) 34 | 35 | ' Loop through all warnings and add them to the table 36 | For Each packageWarning As DtsWarning In myPackage.Warnings 37 | myLogTable.Rows.Add(Convert.ToDateTime(packageWarning.TimeStamp), packageWarning.Source, packageWarning.Description) 38 | Next 39 | 40 | ' Loop through all errors and add them to the table 41 | For Each packageError As DtsError In myPackage.Errors 42 | myLogTable.Rows.Add(Convert.ToDateTime(packageError.TimeStamp), packageError.Source, packageError.Description) 43 | Next 44 | 45 | ' Create a sorted view and then make a new datatable with it 46 | myLogTable.DefaultView.Sort = "LogTime" 47 | Dim myLogTableSorted As DataTable = myLogTable.DefaultView.ToTable() 48 | 49 | ' Cleanup resource 50 | myLogTable.Dispose() 51 | 52 | ' Loop through the new sorted dataset and add rows to the listbox 53 | For Each row As DataRow In myLogTableSorted.Rows 54 | lbLog.Items.Add(row.Field(Of DateTime)(0).ToLongTimeString() + " - " + row.Field(Of String)(1) + " - " + row.Field(Of String)(2)) 55 | Next 56 | 57 | ' Cleanup resource 58 | myLogTableSorted.Dispose() 59 | 60 | End Sub 61 | End Class 62 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationVB/My Project/Application.Designer.vb: -------------------------------------------------------------------------------- 1 | '------------------------------------------------------------------------------ 2 | ' 3 | ' This code was generated by a tool. 4 | ' Runtime Version:4.0.30319.42000 5 | ' 6 | ' Changes to this file may cause incorrect behavior and will be lost if 7 | ' the code is regenerated. 8 | ' 9 | '------------------------------------------------------------------------------ 10 | 11 | Option Strict On 12 | Option Explicit On 13 | 14 | 15 | Namespace My 16 | 17 | 'NOTE: This file is auto-generated; do not modify it directly. To make changes, 18 | ' or if you encounter build errors in this file, go to the Project Designer 19 | ' (go to Project Properties or double-click the My Project node in 20 | ' Solution Explorer), and make changes on the Application tab. 21 | ' 22 | Partial Friend Class MyApplication 23 | 24 | _ 25 | Public Sub New() 26 | MyBase.New(Global.Microsoft.VisualBasic.ApplicationServices.AuthenticationMode.Windows) 27 | Me.IsSingleInstance = false 28 | Me.EnableVisualStyles = true 29 | Me.SaveMySettingsOnExit = true 30 | Me.ShutDownStyle = Global.Microsoft.VisualBasic.ApplicationServices.ShutdownMode.AfterMainFormCloses 31 | End Sub 32 | 33 | _ 34 | Protected Overrides Sub OnCreateMainForm() 35 | Me.MainForm = Global.MySsisApplicationVB.Form1 36 | End Sub 37 | End Class 38 | End Namespace 39 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationVB/My Project/Application.myapp: -------------------------------------------------------------------------------- 1 |  2 | 3 | true 4 | Form1 5 | false 6 | 0 7 | true 8 | 0 9 | 0 10 | true 11 | 12 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationVB/My Project/AssemblyInfo.vb: -------------------------------------------------------------------------------- 1 | Imports System 2 | Imports System.Reflection 3 | Imports System.Runtime.InteropServices 4 | 5 | ' General Information about an assembly is controlled through the following 6 | ' set of attributes. Change these attribute values to modify the information 7 | ' associated with an assembly. 8 | 9 | ' Review the values of the assembly attributes 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 'The following GUID is for the ID of the typelib if this project is exposed to COM 21 | 22 | 23 | ' Version information for an assembly consists of the following four values: 24 | ' 25 | ' Major Version 26 | ' Minor Version 27 | ' Build Number 28 | ' Revision 29 | ' 30 | ' You can specify all the values or you can default the Build and Revision Numbers 31 | ' by using the '*' as shown below: 32 | ' 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationVB/My Project/Resources.Designer.vb: -------------------------------------------------------------------------------- 1 | '------------------------------------------------------------------------------ 2 | ' 3 | ' This code was generated by a tool. 4 | ' Runtime Version:4.0.30319.42000 5 | ' 6 | ' Changes to this file may cause incorrect behavior and will be lost if 7 | ' the code is regenerated. 8 | ' 9 | '------------------------------------------------------------------------------ 10 | 11 | Option Strict On 12 | Option Explicit On 13 | 14 | Imports System 15 | 16 | Namespace My.Resources 17 | 18 | 'This class was auto-generated by the StronglyTypedResourceBuilder 19 | 'class via a tool like ResGen or Visual Studio. 20 | 'To add or remove a member, edit your .ResX file then rerun ResGen 21 | 'with the /str option, or rebuild your VS project. 22 | ''' 23 | ''' A strongly-typed resource class, for looking up localized strings, etc. 24 | ''' 25 | _ 29 | Friend Module Resources 30 | 31 | Private resourceMan As Global.System.Resources.ResourceManager 32 | 33 | Private resourceCulture As Global.System.Globalization.CultureInfo 34 | 35 | ''' 36 | ''' Returns the cached ResourceManager instance used by this class. 37 | ''' 38 | _ 39 | Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager 40 | Get 41 | If Object.ReferenceEquals(resourceMan, Nothing) Then 42 | Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("MySsisApplicationVB.Resources", GetType(Resources).Assembly) 43 | resourceMan = temp 44 | End If 45 | Return resourceMan 46 | End Get 47 | End Property 48 | 49 | ''' 50 | ''' Overrides the current thread's CurrentUICulture property for all 51 | ''' resource lookups using this strongly typed resource class. 52 | ''' 53 | _ 54 | Friend Property Culture() As Global.System.Globalization.CultureInfo 55 | Get 56 | Return resourceCulture 57 | End Get 58 | Set 59 | resourceCulture = value 60 | End Set 61 | End Property 62 | End Module 63 | End Namespace 64 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationVB/My Project/Resources.resx: -------------------------------------------------------------------------------- 1 |  2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | text/microsoft-resx 107 | 108 | 109 | 2.0 110 | 111 | 112 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 113 | 114 | 115 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationVB/My Project/Settings.Designer.vb: -------------------------------------------------------------------------------- 1 | '------------------------------------------------------------------------------ 2 | ' 3 | ' This code was generated by a tool. 4 | ' Runtime Version:4.0.30319.42000 5 | ' 6 | ' Changes to this file may cause incorrect behavior and will be lost if 7 | ' the code is regenerated. 8 | ' 9 | '------------------------------------------------------------------------------ 10 | 11 | Option Strict On 12 | Option Explicit On 13 | 14 | 15 | Namespace My 16 | 17 | _ 20 | Partial Friend NotInheritable Class MySettings 21 | Inherits Global.System.Configuration.ApplicationSettingsBase 22 | 23 | Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings()),MySettings) 24 | 25 | #Region "My.Settings Auto-Save Functionality" 26 | #If _MyType = "WindowsForms" Then 27 | Private Shared addedHandler As Boolean 28 | 29 | Private Shared addedHandlerLockObject As New Object 30 | 31 | _ 32 | Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs) 33 | If My.Application.SaveMySettingsOnExit Then 34 | My.Settings.Save() 35 | End If 36 | End Sub 37 | #End If 38 | #End Region 39 | 40 | Public Shared ReadOnly Property [Default]() As MySettings 41 | Get 42 | 43 | #If _MyType = "WindowsForms" Then 44 | If Not addedHandler Then 45 | SyncLock addedHandlerLockObject 46 | If Not addedHandler Then 47 | AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings 48 | addedHandler = True 49 | End If 50 | End SyncLock 51 | End If 52 | #End If 53 | Return defaultInstance 54 | End Get 55 | End Property 56 | End Class 57 | End Namespace 58 | 59 | Namespace My 60 | 61 | _ 64 | Friend Module MySettingsProperty 65 | 66 | _ 67 | Friend ReadOnly Property Settings() As Global.MySsisApplicationVB.My.MySettings 68 | Get 69 | Return Global.MySsisApplicationVB.My.MySettings.Default 70 | End Get 71 | End Property 72 | End Module 73 | End Namespace 74 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationVB/My Project/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationVB/MySsisApplicationVB.vbproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {51FC92E8-A57E-46C5-8702-FB357C94380D} 8 | WinExe 9 | MySsisApplicationVB.My.MyApplication 10 | MySsisApplicationVB 11 | MySsisApplicationVB 12 | 512 13 | WindowsForms 14 | v4.0 15 | 16 | 17 | 18 | AnyCPU 19 | true 20 | full 21 | true 22 | true 23 | bin\Debug\ 24 | MySsisApplicationVB.xml 25 | 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 26 | 27 | 28 | AnyCPU 29 | pdbonly 30 | false 31 | true 32 | true 33 | bin\Release\ 34 | MySsisApplicationVB.xml 35 | 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 36 | 37 | 38 | On 39 | 40 | 41 | Binary 42 | 43 | 44 | Off 45 | 46 | 47 | On 48 | 49 | 50 | 51 | False 52 | ..\..\..\..\..\..\..\..\..\..\..\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.SqlServer.ManagedDTS\v4.0_11.0.0.0__89845dcd8080cc91\Microsoft.SqlServer.ManagedDTS.dll 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | Form 79 | 80 | 81 | Form1.vb 82 | Form 83 | 84 | 85 | 86 | True 87 | Application.myapp 88 | 89 | 90 | True 91 | True 92 | Resources.resx 93 | 94 | 95 | True 96 | Settings.settings 97 | True 98 | 99 | 100 | 101 | 102 | Form1.vb 103 | 104 | 105 | VbMyResourcesResXFileCodeGenerator 106 | Resources.Designer.vb 107 | My.Resources 108 | Designer 109 | 110 | 111 | 112 | 113 | 114 | MyApplicationCodeGenerator 115 | Application.Designer.vb 116 | 117 | 118 | SettingsSingleFileGenerator 119 | My 120 | Settings.Designer.vb 121 | 122 | 123 | 124 | 131 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationVB/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationVB/bin/Debug/MySsisApplicationVB.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationVB/bin/Debug/MySsisApplicationVB.exe -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationVB/bin/Debug/MySsisApplicationVB.exe.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationVB/bin/Debug/MySsisApplicationVB.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationVB/bin/Debug/MySsisApplicationVB.pdb -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationVB/bin/Debug/MySsisApplicationVB.vshost.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationVB/bin/Debug/MySsisApplicationVB.vshost.exe -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationVB/bin/Debug/MySsisApplicationVB.vshost.exe.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationVB/bin/Debug/MySsisApplicationVB.vshost.exe.manifest: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationVB/bin/Debug/MySsisApplicationVB.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | MySsisApplicationVB 6 | 7 | 8 | 9 | 10 | 11 | Returns the cached ResourceManager instance used by this class. 12 | 13 | 14 | 15 | Overrides the current thread's CurrentUICulture property for all 16 | resource lookups using this strongly typed resource class. 17 | 18 | 19 | 20 | A strongly-typed resource class, for looking up localized strings, etc. 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationVB/obj/Debug/DesignTimeResolveAssemblyReferences.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationVB/obj/Debug/DesignTimeResolveAssemblyReferences.cache -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationVB/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationVB/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationVB/obj/Debug/MySsisApplicationVB.Form1.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationVB/obj/Debug/MySsisApplicationVB.Form1.resources -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationVB/obj/Debug/MySsisApplicationVB.Resources.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationVB/obj/Debug/MySsisApplicationVB.Resources.resources -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationVB/obj/Debug/MySsisApplicationVB.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationVB/obj/Debug/MySsisApplicationVB.exe -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationVB/obj/Debug/MySsisApplicationVB.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationVB/obj/Debug/MySsisApplicationVB.pdb -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationVB/obj/Debug/MySsisApplicationVB.vbproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | C:\Users\jvanrossum\OneDrive\Documenten\Extending SSIS with .Net\02_Code\2012\Extending SSIS with .NET\Chapter 21\MySsisApplication\MySsisApplicationVB\obj\Debug\MySsisApplicationVB.vbprojResolveAssemblyReference.cache 2 | C:\Users\jvanrossum\OneDrive\Documenten\Extending SSIS with .Net\02_Code\2012\Extending SSIS with .NET\Chapter 21\MySsisApplication\MySsisApplicationVB\obj\Debug\MySsisApplicationVB.Form1.resources 3 | C:\Users\jvanrossum\OneDrive\Documenten\Extending SSIS with .Net\02_Code\2012\Extending SSIS with .NET\Chapter 21\MySsisApplication\MySsisApplicationVB\obj\Debug\MySsisApplicationVB.Resources.resources 4 | C:\Users\jvanrossum\OneDrive\Documenten\Extending SSIS with .Net\02_Code\2012\Extending SSIS with .NET\Chapter 21\MySsisApplication\MySsisApplicationVB\obj\Debug\MySsisApplicationVB.vbproj.GenerateResource.Cache 5 | C:\Users\jvanrossum\OneDrive\Documenten\Extending SSIS with .Net\02_Code\2012\Extending SSIS with .NET\Chapter 21\MySsisApplication\MySsisApplicationVB\bin\Debug\MySsisApplicationVB.exe.config 6 | C:\Users\jvanrossum\OneDrive\Documenten\Extending SSIS with .Net\02_Code\2012\Extending SSIS with .NET\Chapter 21\MySsisApplication\MySsisApplicationVB\bin\Debug\MySsisApplicationVB.exe 7 | C:\Users\jvanrossum\OneDrive\Documenten\Extending SSIS with .Net\02_Code\2012\Extending SSIS with .NET\Chapter 21\MySsisApplication\MySsisApplicationVB\bin\Debug\MySsisApplicationVB.pdb 8 | C:\Users\jvanrossum\OneDrive\Documenten\Extending SSIS with .Net\02_Code\2012\Extending SSIS with .NET\Chapter 21\MySsisApplication\MySsisApplicationVB\bin\Debug\MySsisApplicationVB.xml 9 | C:\Users\jvanrossum\OneDrive\Documenten\Extending SSIS with .Net\02_Code\2012\Extending SSIS with .NET\Chapter 21\MySsisApplication\MySsisApplicationVB\obj\Debug\MySsisApplicationVB.exe 10 | C:\Users\jvanrossum\OneDrive\Documenten\Extending SSIS with .Net\02_Code\2012\Extending SSIS with .NET\Chapter 21\MySsisApplication\MySsisApplicationVB\obj\Debug\MySsisApplicationVB.xml 11 | C:\Users\jvanrossum\OneDrive\Documenten\Extending SSIS with .Net\02_Code\2012\Extending SSIS with .NET\Chapter 21\MySsisApplication\MySsisApplicationVB\obj\Debug\MySsisApplicationVB.pdb 12 | D:\Chapter 21\MySsisApplication\MySsisApplicationVB\bin\Debug\MySsisApplicationVB.exe.config 13 | D:\Chapter 21\MySsisApplication\MySsisApplicationVB\obj\Debug\MySsisApplicationVB.exe 14 | D:\Chapter 21\MySsisApplication\MySsisApplicationVB\obj\Debug\MySsisApplicationVB.xml 15 | D:\Chapter 21\MySsisApplication\MySsisApplicationVB\obj\Debug\MySsisApplicationVB.pdb 16 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationVB/obj/Debug/MySsisApplicationVB.vbproj.GenerateResource.Cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationVB/obj/Debug/MySsisApplicationVB.vbproj.GenerateResource.Cache -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationVB/obj/Debug/MySsisApplicationVB.vbprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationVB/obj/Debug/MySsisApplicationVB.vbprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationVB/obj/Debug/MySsisApplicationVB.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | MySsisApplicationVB 6 | 7 | 8 | 9 | 10 | 11 | Returns the cached ResourceManager instance used by this class. 12 | 13 | 14 | 15 | Overrides the current thread's CurrentUICulture property for all 16 | resource lookups using this strongly typed resource class. 17 | 18 | 19 | 20 | A strongly-typed resource class, for looking up localized strings, etc. 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationVB/obj/Debug/TempPE/My Project.Resources.Designer.vb.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication/MySsisApplicationVB/obj/Debug/TempPE/My Project.Resources.Designer.vb.dll -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.31101.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MySsisApplication2C", "MySsisApplication2C\MySsisApplication2C.csproj", "{DBBA8A1D-1363-43C7-A3FA-434663146A87}" 7 | EndProject 8 | Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "MySsisApplication2VB", "MySsisApplication2VB\MySsisApplication2VB.vbproj", "{5D9DE593-7278-4EBF-BE08-6C6073EA9FB8}" 9 | EndProject 10 | Global 11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 12 | Debug|Any CPU = Debug|Any CPU 13 | Development|Any CPU = Development|Any CPU 14 | Release|Any CPU = Release|Any CPU 15 | EndGlobalSection 16 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 17 | {DBBA8A1D-1363-43C7-A3FA-434663146A87}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 18 | {DBBA8A1D-1363-43C7-A3FA-434663146A87}.Debug|Any CPU.Build.0 = Debug|Any CPU 19 | {DBBA8A1D-1363-43C7-A3FA-434663146A87}.Development|Any CPU.ActiveCfg = Debug|Any CPU 20 | {DBBA8A1D-1363-43C7-A3FA-434663146A87}.Development|Any CPU.Build.0 = Debug|Any CPU 21 | {DBBA8A1D-1363-43C7-A3FA-434663146A87}.Release|Any CPU.ActiveCfg = Release|Any CPU 22 | {DBBA8A1D-1363-43C7-A3FA-434663146A87}.Release|Any CPU.Build.0 = Release|Any CPU 23 | {5D9DE593-7278-4EBF-BE08-6C6073EA9FB8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 24 | {5D9DE593-7278-4EBF-BE08-6C6073EA9FB8}.Debug|Any CPU.Build.0 = Debug|Any CPU 25 | {5D9DE593-7278-4EBF-BE08-6C6073EA9FB8}.Development|Any CPU.ActiveCfg = Debug|Any CPU 26 | {5D9DE593-7278-4EBF-BE08-6C6073EA9FB8}.Development|Any CPU.Build.0 = Debug|Any CPU 27 | {5D9DE593-7278-4EBF-BE08-6C6073EA9FB8}.Release|Any CPU.ActiveCfg = Release|Any CPU 28 | {5D9DE593-7278-4EBF-BE08-6C6073EA9FB8}.Release|Any CPU.Build.0 = Release|Any CPU 29 | EndGlobalSection 30 | GlobalSection(SolutionProperties) = preSolution 31 | HideSolutionNode = FALSE 32 | EndGlobalSection 33 | EndGlobal 34 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2.v12.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2.v12.suo -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2C/Form1.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace MySsisApplication2C 2 | { 3 | partial class Form1 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | this.lbLog = new System.Windows.Forms.ListBox(); 32 | this.lblStatus = new System.Windows.Forms.Label(); 33 | this.btnStart = new System.Windows.Forms.Button(); 34 | this.SuspendLayout(); 35 | // 36 | // lbLog 37 | // 38 | this.lbLog.FormattingEnabled = true; 39 | this.lbLog.ItemHeight = 16; 40 | this.lbLog.Location = new System.Drawing.Point(13, 85); 41 | this.lbLog.Name = "lbLog"; 42 | this.lbLog.Size = new System.Drawing.Size(787, 196); 43 | this.lbLog.TabIndex = 7; 44 | // 45 | // lblStatus 46 | // 47 | this.lblStatus.AutoSize = true; 48 | this.lblStatus.Location = new System.Drawing.Point(14, 56); 49 | this.lblStatus.Name = "lblStatus"; 50 | this.lblStatus.Size = new System.Drawing.Size(83, 17); 51 | this.lblStatus.TabIndex = 6; 52 | this.lblStatus.Text = "StatusLabel"; 53 | // 54 | // btnStart 55 | // 56 | this.btnStart.Location = new System.Drawing.Point(17, 19); 57 | this.btnStart.Name = "btnStart"; 58 | this.btnStart.Size = new System.Drawing.Size(75, 23); 59 | this.btnStart.TabIndex = 5; 60 | this.btnStart.Text = "Start"; 61 | this.btnStart.UseVisualStyleBackColor = true; 62 | this.btnStart.Click += new System.EventHandler(this.btnStart_Click); 63 | // 64 | // Form1 65 | // 66 | this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); 67 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 68 | this.ClientSize = new System.Drawing.Size(812, 297); 69 | this.Controls.Add(this.lbLog); 70 | this.Controls.Add(this.lblStatus); 71 | this.Controls.Add(this.btnStart); 72 | this.Name = "Form1"; 73 | this.Text = "Form1"; 74 | this.ResumeLayout(false); 75 | this.PerformLayout(); 76 | 77 | } 78 | 79 | #endregion 80 | 81 | private System.Windows.Forms.ListBox lbLog; 82 | private System.Windows.Forms.Label lblStatus; 83 | private System.Windows.Forms.Button btnStart; 84 | } 85 | } 86 | 87 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2C/Form1.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Windows.Forms; 9 | 10 | #region CustomNamespace 11 | using System.Data.SqlClient; 12 | using Microsoft.SqlServer.Management.IntegrationServices; 13 | using System.Collections.ObjectModel; 14 | #endregion 15 | 16 | namespace MySsisApplication2C 17 | { 18 | public partial class Form1 : Form 19 | { 20 | public Form1() 21 | { 22 | InitializeComponent(); 23 | } 24 | 25 | private void btnStart_Click(object sender, EventArgs e) 26 | { 27 | // Connecting to the SQL Server instance where the catalog is located 28 | using (SqlConnection ssisConnection = new SqlConnection("Data Source=.;Initial Catalog=master;Integrated Security=SSPI;")) 29 | { 30 | try 31 | { 32 | // SSIS server object with connection 33 | IntegrationServices ssisServer = new IntegrationServices(ssisConnection); 34 | 35 | // The reference to the package which you want to execute 36 | lblStatus.Text = "Loading package from catalog."; 37 | Form.ActiveForm.Refresh(); 38 | PackageInfo ssisPackage = ssisServer.Catalogs["SSISDB"].Folders["Extending SSIS"].Projects["Chapter 21"].Packages["myPackage.dtsx"]; 39 | 40 | // Setting parameters 41 | Collection executionParameter = new Collection(); 42 | 43 | // Add execution parameter for an asynchronized (value=0, default) or synchronized (value=1) execution 44 | executionParameter.Add(new PackageInfo.ExecutionValueParameterSet {ObjectType = 50, ParameterName = "SYNCHRONIZED", ParameterValue = 0}); 45 | 46 | // Add execution parameter (value) to override the default logging level (0=None, 1=Basic, 2=Performance, 3=Verbose) 47 | executionParameter.Add(new PackageInfo.ExecutionValueParameterSet {ObjectType = 50, ParameterName = "LOGGING_LEVEL", ParameterValue = 3}); 48 | 49 | // Add a project parameter (value) to fill a project parameter 50 | //executionParameter.Add(new PackageInfo.ExecutionValueParameterSet { ObjectType = 20, ParameterName = "MyProjectParameter", ParameterValue = "some value" }); 51 | 52 | // Add a package parameter (value) to fill a package parameter 53 | //executionParameter.Add(new PackageInfo.ExecutionValueParameterSet { ObjectType = 30, ParameterName = "MyPackageParameter", ParameterValue = "some value" }); 54 | 55 | // Execute package and return the ServerExecutionId 56 | long executionIdentifier = ssisPackage.Execute(false, null, executionParameter); 57 | 58 | // Get execution details with the ServerExecutionId from the previous step 59 | lblStatus.Text = "Executing package"; 60 | Form.ActiveForm.Refresh(); 61 | ExecutionOperation executionOperation = ssisServer.Catalogs["SSISDB"].Executions[executionIdentifier]; 62 | 63 | // Workaround for 30 second timeout: 64 | // Loop while the execution is not completed 65 | while (!(executionOperation.Completed)) 66 | { 67 | // Refresh execution info 68 | executionOperation.Refresh(); 69 | 70 | // Wait 5 seconds before refreshing (we don't want to stress the server) 71 | System.Threading.Thread.Sleep(5000); 72 | } 73 | // Showing the ServerExecutionId 74 | lblStatus.Text = "Execution " + executionOperation.Id.ToString() + " finished: " + executionOperation.Status.ToString(); 75 | 76 | // Clear listbox before adding log rows to it 77 | lbLog.Items.Clear(); 78 | 79 | // Loop through the log and add the messages to the listbox 80 | foreach (OperationMessage message in ssisServer.Catalogs["SSISDB"].Executions[executionIdentifier].Messages) 81 | { 82 | lbLog.Items.Add(message.MessageType.ToString() + ": " + message.Message); 83 | } 84 | } 85 | catch (Exception ex) 86 | { 87 | // Log code for exceptions 88 | lblStatus.Text = "Error: " + ex.Message; 89 | } 90 | } 91 | } 92 | } 93 | } 94 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2C/Form1.resx: -------------------------------------------------------------------------------- 1 |  2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2C/MySsisApplication2C.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {DBBA8A1D-1363-43C7-A3FA-434663146A87} 8 | WinExe 9 | Properties 10 | MySsisApplication2C 11 | MySsisApplication2C 12 | v4.0 13 | 512 14 | 15 | 16 | AnyCPU 17 | true 18 | full 19 | false 20 | bin\Debug\ 21 | DEBUG;TRACE 22 | prompt 23 | 4 24 | 25 | 26 | AnyCPU 27 | pdbonly 28 | true 29 | bin\Release\ 30 | TRACE 31 | prompt 32 | 4 33 | 34 | 35 | 36 | False 37 | ..\..\..\..\..\..\..\..\..\..\..\Windows\assembly\GAC_MSIL\Microsoft.SqlServer.ConnectionInfo\11.0.0.0__89845dcd8080cc91\Microsoft.SqlServer.ConnectionInfo.dll 38 | 39 | 40 | False 41 | ..\..\..\..\..\..\..\..\..\..\..\Windows\assembly\GAC_MSIL\Microsoft.SqlServer.Management.IntegrationServices\11.0.0.0__89845dcd8080cc91\Microsoft.SqlServer.Management.IntegrationServices.dll 42 | 43 | 44 | False 45 | ..\..\..\..\..\..\..\..\..\..\..\Windows\assembly\GAC_MSIL\Microsoft.SqlServer.Management.Sdk.Sfc\11.0.0.0__89845dcd8080cc91\Microsoft.SqlServer.Management.Sdk.Sfc.dll 46 | 47 | 48 | False 49 | ..\..\..\..\..\..\..\..\..\..\..\Windows\assembly\GAC_MSIL\Microsoft.SqlServer.Smo\11.0.0.0__89845dcd8080cc91\Microsoft.SqlServer.Smo.dll 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | Form 65 | 66 | 67 | Form1.cs 68 | 69 | 70 | 71 | 72 | Form1.cs 73 | 74 | 75 | ResXFileCodeGenerator 76 | Resources.Designer.cs 77 | Designer 78 | 79 | 80 | True 81 | Resources.resx 82 | 83 | 84 | SettingsSingleFileGenerator 85 | Settings.Designer.cs 86 | 87 | 88 | True 89 | Settings.settings 90 | True 91 | 92 | 93 | 94 | 101 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2C/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Windows.Forms; 5 | 6 | namespace MySsisApplication2C 7 | { 8 | static class Program 9 | { 10 | /// 11 | /// The main entry point for the application. 12 | /// 13 | [STAThread] 14 | static void Main() 15 | { 16 | Application.EnableVisualStyles(); 17 | Application.SetCompatibleTextRenderingDefault(false); 18 | Application.Run(new Form1()); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2C/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("MySsisApplication2C")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("MySsisApplication2C")] 13 | [assembly: AssemblyCopyright("Copyright © 2015")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("39f7ca34-ccf6-4281-9ca6-50e44d32239f")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2C/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace MySsisApplication2C.Properties 12 | { 13 | 14 | 15 | /// 16 | /// A strongly-typed resource class, for looking up localized strings, etc. 17 | /// 18 | // This class was auto-generated by the StronglyTypedResourceBuilder 19 | // class via a tool like ResGen or Visual Studio. 20 | // To add or remove a member, edit your .ResX file then rerun ResGen 21 | // with the /str option, or rebuild your VS project. 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | internal class Resources 26 | { 27 | 28 | private static global::System.Resources.ResourceManager resourceMan; 29 | 30 | private static global::System.Globalization.CultureInfo resourceCulture; 31 | 32 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 33 | internal Resources() 34 | { 35 | } 36 | 37 | /// 38 | /// Returns the cached ResourceManager instance used by this class. 39 | /// 40 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 41 | internal static global::System.Resources.ResourceManager ResourceManager 42 | { 43 | get 44 | { 45 | if ((resourceMan == null)) 46 | { 47 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("MySsisApplication2C.Properties.Resources", typeof(Resources).Assembly); 48 | resourceMan = temp; 49 | } 50 | return resourceMan; 51 | } 52 | } 53 | 54 | /// 55 | /// Overrides the current thread's CurrentUICulture property for all 56 | /// resource lookups using this strongly typed resource class. 57 | /// 58 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 59 | internal static global::System.Globalization.CultureInfo Culture 60 | { 61 | get 62 | { 63 | return resourceCulture; 64 | } 65 | set 66 | { 67 | resourceCulture = value; 68 | } 69 | } 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2C/Properties/Resources.resx: -------------------------------------------------------------------------------- 1 |  2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | text/microsoft-resx 107 | 108 | 109 | 2.0 110 | 111 | 112 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 113 | 114 | 115 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2C/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace MySsisApplication2C.Properties 12 | { 13 | 14 | 15 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 16 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] 17 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase 18 | { 19 | 20 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 21 | 22 | public static Settings Default 23 | { 24 | get 25 | { 26 | return defaultInstance; 27 | } 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2C/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2C/bin/Debug/MySsisApplication2C.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2C/bin/Debug/MySsisApplication2C.exe -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2C/bin/Debug/MySsisApplication2C.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2C/bin/Debug/MySsisApplication2C.pdb -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2C/bin/Debug/MySsisApplication2C.vshost.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2C/bin/Debug/MySsisApplication2C.vshost.exe -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2C/bin/Debug/MySsisApplication2C.vshost.exe.manifest: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2C/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2C/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2C/obj/Debug/MySsisApplication2C.Form1.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2C/obj/Debug/MySsisApplication2C.Form1.resources -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2C/obj/Debug/MySsisApplication2C.Properties.Resources.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2C/obj/Debug/MySsisApplication2C.Properties.Resources.resources -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2C/obj/Debug/MySsisApplication2C.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | C:\Users\jvanrossum\OneDrive\Documenten\Extending SSIS with .Net\02_Code\2012\Extending SSIS with .NET\Chapter 21\MySsisApplication2\MySsisApplication2C\bin\Debug\MySsisApplication2C.exe 2 | C:\Users\jvanrossum\OneDrive\Documenten\Extending SSIS with .Net\02_Code\2012\Extending SSIS with .NET\Chapter 21\MySsisApplication2\MySsisApplication2C\bin\Debug\MySsisApplication2C.pdb 3 | C:\Users\jvanrossum\OneDrive\Documenten\Extending SSIS with .Net\02_Code\2012\Extending SSIS with .NET\Chapter 21\MySsisApplication2\MySsisApplication2C\obj\Debug\MySsisApplication2C.csprojResolveAssemblyReference.cache 4 | C:\Users\jvanrossum\OneDrive\Documenten\Extending SSIS with .Net\02_Code\2012\Extending SSIS with .NET\Chapter 21\MySsisApplication2\MySsisApplication2C\obj\Debug\MySsisApplication2C.Form1.resources 5 | C:\Users\jvanrossum\OneDrive\Documenten\Extending SSIS with .Net\02_Code\2012\Extending SSIS with .NET\Chapter 21\MySsisApplication2\MySsisApplication2C\obj\Debug\MySsisApplication2C.Properties.Resources.resources 6 | C:\Users\jvanrossum\OneDrive\Documenten\Extending SSIS with .Net\02_Code\2012\Extending SSIS with .NET\Chapter 21\MySsisApplication2\MySsisApplication2C\obj\Debug\MySsisApplication2C.csproj.GenerateResource.Cache 7 | C:\Users\jvanrossum\OneDrive\Documenten\Extending SSIS with .Net\02_Code\2012\Extending SSIS with .NET\Chapter 21\MySsisApplication2\MySsisApplication2C\obj\Debug\MySsisApplication2C.exe 8 | C:\Users\jvanrossum\OneDrive\Documenten\Extending SSIS with .Net\02_Code\2012\Extending SSIS with .NET\Chapter 21\MySsisApplication2\MySsisApplication2C\obj\Debug\MySsisApplication2C.pdb 9 | D:\Chapter 21\MySsisApplication2\MySsisApplication2C\obj\Debug\MySsisApplication2C.exe 10 | D:\Chapter 21\MySsisApplication2\MySsisApplication2C\obj\Debug\MySsisApplication2C.pdb 11 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2C/obj/Debug/MySsisApplication2C.csproj.GenerateResource.Cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2C/obj/Debug/MySsisApplication2C.csproj.GenerateResource.Cache -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2C/obj/Debug/MySsisApplication2C.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2C/obj/Debug/MySsisApplication2C.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2C/obj/Debug/MySsisApplication2C.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2C/obj/Debug/MySsisApplication2C.exe -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2C/obj/Debug/MySsisApplication2C.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2C/obj/Debug/MySsisApplication2C.pdb -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2VB/Form1.Designer.vb: -------------------------------------------------------------------------------- 1 |  _ 2 | Partial Class Form1 3 | Inherits System.Windows.Forms.Form 4 | 5 | 'Form overrides dispose to clean up the component list. 6 | _ 7 | Protected Overrides Sub Dispose(ByVal disposing As Boolean) 8 | Try 9 | If disposing AndAlso components IsNot Nothing Then 10 | components.Dispose() 11 | End If 12 | Finally 13 | MyBase.Dispose(disposing) 14 | End Try 15 | End Sub 16 | 17 | 'Required by the Windows Form Designer 18 | Private components As System.ComponentModel.IContainer 19 | 20 | 'NOTE: The following procedure is required by the Windows Form Designer 21 | 'It can be modified using the Windows Form Designer. 22 | 'Do not modify it using the code editor. 23 | _ 24 | Private Sub InitializeComponent() 25 | Me.lbLog = New System.Windows.Forms.ListBox() 26 | Me.lblStatus = New System.Windows.Forms.Label() 27 | Me.btnStart = New System.Windows.Forms.Button() 28 | Me.SuspendLayout() 29 | ' 30 | 'lbLog 31 | ' 32 | Me.lbLog.FormattingEnabled = True 33 | Me.lbLog.ItemHeight = 16 34 | Me.lbLog.Location = New System.Drawing.Point(13, 85) 35 | Me.lbLog.Name = "lbLog" 36 | Me.lbLog.Size = New System.Drawing.Size(802, 148) 37 | Me.lbLog.TabIndex = 7 38 | ' 39 | 'lblStatus 40 | ' 41 | Me.lblStatus.AutoSize = True 42 | Me.lblStatus.Location = New System.Drawing.Point(14, 56) 43 | Me.lblStatus.Name = "lblStatus" 44 | Me.lblStatus.Size = New System.Drawing.Size(83, 17) 45 | Me.lblStatus.TabIndex = 6 46 | Me.lblStatus.Text = "StatusLabel" 47 | ' 48 | 'btnStart 49 | ' 50 | Me.btnStart.Location = New System.Drawing.Point(17, 19) 51 | Me.btnStart.Name = "btnStart" 52 | Me.btnStart.Size = New System.Drawing.Size(75, 23) 53 | Me.btnStart.TabIndex = 5 54 | Me.btnStart.Text = "Start" 55 | Me.btnStart.UseVisualStyleBackColor = True 56 | ' 57 | 'Form1 58 | ' 59 | Me.AutoScaleDimensions = New System.Drawing.SizeF(8.0!, 16.0!) 60 | Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font 61 | Me.ClientSize = New System.Drawing.Size(827, 253) 62 | Me.Controls.Add(Me.lbLog) 63 | Me.Controls.Add(Me.lblStatus) 64 | Me.Controls.Add(Me.btnStart) 65 | Me.Name = "Form1" 66 | Me.Text = "Form1" 67 | Me.ResumeLayout(False) 68 | Me.PerformLayout() 69 | 70 | End Sub 71 | Private WithEvents lbLog As System.Windows.Forms.ListBox 72 | Private WithEvents lblStatus As System.Windows.Forms.Label 73 | Private WithEvents btnStart As System.Windows.Forms.Button 74 | 75 | End Class 76 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2VB/Form1.resx: -------------------------------------------------------------------------------- 1 |  2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2VB/Form1.vb: -------------------------------------------------------------------------------- 1 | #Region "CustomNamespace" 2 | Imports System.Data.SqlClient 3 | Imports Microsoft.SqlServer.Management.IntegrationServices 4 | Imports System.Collections.ObjectModel 5 | #End Region 6 | 7 | Public Class Form1 8 | 9 | Private Sub btnStart_Click(sender As Object, e As EventArgs) Handles btnStart.Click 10 | ' Connecting to the SQL Server instance where the catalog is located 11 | Using ssisConnection As New SqlConnection("Data Source=.;Initial Catalog=master;Integrated Security=SSPI;") 12 | Try 13 | ' SSIS server object with connection 14 | Dim ssisServer As New IntegrationServices(ssisConnection) 15 | 16 | ' The reference to the package which you want to execute 17 | lblStatus.Text = "Loading package from catalog." 18 | Form.ActiveForm.Refresh() 19 | Dim ssisPackage As PackageInfo = ssisServer.Catalogs("SSISDB").Folders("Extending SSIS").Projects("Chapter 21").Packages("myPackage.dtsx") 20 | 21 | ' Setting parameters 22 | Dim executionParameter As New Collection(Of PackageInfo.ExecutionValueParameterSet)() 23 | 24 | ' Add execution parameter for an asynchronized (value=0, default) or synchronized (value=1) execution 25 | executionParameter.Add(New PackageInfo.ExecutionValueParameterSet() With { _ 26 | .ObjectType = 50, _ 27 | .ParameterName = "SYNCHRONIZED", _ 28 | .ParameterValue = 0 _ 29 | }) 30 | 31 | ' Add execution parameter (value) to override the default logging level (0=None, 1=Basic, 2=Performance, 3=Verbose) 32 | executionParameter.Add(New PackageInfo.ExecutionValueParameterSet() With { _ 33 | .ObjectType = 50, _ 34 | .ParameterName = "LOGGING_LEVEL", _ 35 | .ParameterValue = 3 _ 36 | }) 37 | 38 | ' Add a project parameter (value) to fill a project parameter 39 | executionParameter.Add(New PackageInfo.ExecutionValueParameterSet() With { _ 40 | .ObjectType = 20, _ 41 | .ParameterName = "MyProjectParameter", _ 42 | .ParameterValue = "some value" _ 43 | }) 44 | 45 | ' Add a package parameter (value) to fill a package parameter 46 | executionParameter.Add(New PackageInfo.ExecutionValueParameterSet() With { _ 47 | .ObjectType = 30, _ 48 | .ParameterName = "MyPackageParameter", _ 49 | .ParameterValue = "some value" _ 50 | }) 51 | 52 | ' Execute package and return the ServerExecutionId 53 | Dim executionIdentifier As Long = ssisPackage.Execute(False, Nothing, executionParameter) 54 | 55 | ' Get execution details with the ServerExecutionId from the previous step 56 | lblStatus.Text = "Executing package" 57 | Form.ActiveForm.Refresh() 58 | Dim executionOperation As ExecutionOperation = ssisServer.Catalogs("SSISDB").Executions(executionIdentifier) 59 | 60 | ' Workaround for 30 second timeout: 61 | ' Loop while the execution is not completed 62 | While Not (executionOperation.Completed) 63 | ' Refresh execution info 64 | executionOperation.Refresh() 65 | 66 | ' Wait 5 seconds before refreshing (we don't want to stress the server) 67 | System.Threading.Thread.Sleep(5000) 68 | End While 69 | ' Showing the ServerExecutionId 70 | lblStatus.Text = "Execution " + executionOperation.Id.ToString() + " finished: " + executionOperation.Status.ToString() 71 | 72 | ' Clear listbox before adding log rows to it 73 | lbLog.Items.Clear() 74 | 75 | ' Loop through the log and add the messages to the listbox 76 | For Each message As OperationMessage In ssisServer.Catalogs("SSISDB").Executions(executionIdentifier).Messages 77 | lbLog.Items.Add(message.MessageType.ToString() + ": " + message.Message) 78 | Next 79 | Catch ex As Exception 80 | ' Log code for exceptions 81 | lblStatus.Text = "Error: " + ex.Message 82 | End Try 83 | End Using 84 | End Sub 85 | End Class 86 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2VB/My Project/Application.Designer.vb: -------------------------------------------------------------------------------- 1 | '------------------------------------------------------------------------------ 2 | ' 3 | ' This code was generated by a tool. 4 | ' Runtime Version:4.0.30319.42000 5 | ' 6 | ' Changes to this file may cause incorrect behavior and will be lost if 7 | ' the code is regenerated. 8 | ' 9 | '------------------------------------------------------------------------------ 10 | 11 | Option Strict On 12 | Option Explicit On 13 | 14 | 15 | Namespace My 16 | 17 | 'NOTE: This file is auto-generated; do not modify it directly. To make changes, 18 | ' or if you encounter build errors in this file, go to the Project Designer 19 | ' (go to Project Properties or double-click the My Project node in 20 | ' Solution Explorer), and make changes on the Application tab. 21 | ' 22 | Partial Friend Class MyApplication 23 | 24 | _ 25 | Public Sub New() 26 | MyBase.New(Global.Microsoft.VisualBasic.ApplicationServices.AuthenticationMode.Windows) 27 | Me.IsSingleInstance = false 28 | Me.EnableVisualStyles = true 29 | Me.SaveMySettingsOnExit = true 30 | Me.ShutDownStyle = Global.Microsoft.VisualBasic.ApplicationServices.ShutdownMode.AfterMainFormCloses 31 | End Sub 32 | 33 | _ 34 | Protected Overrides Sub OnCreateMainForm() 35 | Me.MainForm = Global.MySsisApplication2VB.Form1 36 | End Sub 37 | End Class 38 | End Namespace 39 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2VB/My Project/Application.myapp: -------------------------------------------------------------------------------- 1 |  2 | 3 | true 4 | Form1 5 | false 6 | 0 7 | true 8 | 0 9 | 0 10 | true 11 | 12 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2VB/My Project/AssemblyInfo.vb: -------------------------------------------------------------------------------- 1 | Imports System 2 | Imports System.Reflection 3 | Imports System.Runtime.InteropServices 4 | 5 | ' General Information about an assembly is controlled through the following 6 | ' set of attributes. Change these attribute values to modify the information 7 | ' associated with an assembly. 8 | 9 | ' Review the values of the assembly attributes 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 'The following GUID is for the ID of the typelib if this project is exposed to COM 21 | 22 | 23 | ' Version information for an assembly consists of the following four values: 24 | ' 25 | ' Major Version 26 | ' Minor Version 27 | ' Build Number 28 | ' Revision 29 | ' 30 | ' You can specify all the values or you can default the Build and Revision Numbers 31 | ' by using the '*' as shown below: 32 | ' 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2VB/My Project/Resources.Designer.vb: -------------------------------------------------------------------------------- 1 | '------------------------------------------------------------------------------ 2 | ' 3 | ' This code was generated by a tool. 4 | ' Runtime Version:4.0.30319.42000 5 | ' 6 | ' Changes to this file may cause incorrect behavior and will be lost if 7 | ' the code is regenerated. 8 | ' 9 | '------------------------------------------------------------------------------ 10 | 11 | Option Strict On 12 | Option Explicit On 13 | 14 | 15 | Namespace My.Resources 16 | 17 | 'This class was auto-generated by the StronglyTypedResourceBuilder 18 | 'class via a tool like ResGen or Visual Studio. 19 | 'To add or remove a member, edit your .ResX file then rerun ResGen 20 | 'with the /str option, or rebuild your VS project. 21 | ''' 22 | ''' A strongly-typed resource class, for looking up localized strings, etc. 23 | ''' 24 | _ 28 | Friend Module Resources 29 | 30 | Private resourceMan As Global.System.Resources.ResourceManager 31 | 32 | Private resourceCulture As Global.System.Globalization.CultureInfo 33 | 34 | ''' 35 | ''' Returns the cached ResourceManager instance used by this class. 36 | ''' 37 | _ 38 | Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager 39 | Get 40 | If Object.ReferenceEquals(resourceMan, Nothing) Then 41 | Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("MySsisApplication2VB.Resources", GetType(Resources).Assembly) 42 | resourceMan = temp 43 | End If 44 | Return resourceMan 45 | End Get 46 | End Property 47 | 48 | ''' 49 | ''' Overrides the current thread's CurrentUICulture property for all 50 | ''' resource lookups using this strongly typed resource class. 51 | ''' 52 | _ 53 | Friend Property Culture() As Global.System.Globalization.CultureInfo 54 | Get 55 | Return resourceCulture 56 | End Get 57 | Set(ByVal value As Global.System.Globalization.CultureInfo) 58 | resourceCulture = value 59 | End Set 60 | End Property 61 | End Module 62 | End Namespace 63 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2VB/My Project/Resources.resx: -------------------------------------------------------------------------------- 1 |  2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | text/microsoft-resx 107 | 108 | 109 | 2.0 110 | 111 | 112 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 113 | 114 | 115 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2VB/My Project/Settings.Designer.vb: -------------------------------------------------------------------------------- 1 | '------------------------------------------------------------------------------ 2 | ' 3 | ' This code was generated by a tool. 4 | ' Runtime Version:4.0.30319.42000 5 | ' 6 | ' Changes to this file may cause incorrect behavior and will be lost if 7 | ' the code is regenerated. 8 | ' 9 | '------------------------------------------------------------------------------ 10 | 11 | Option Strict On 12 | Option Explicit On 13 | 14 | 15 | Namespace My 16 | 17 | _ 20 | Partial Friend NotInheritable Class MySettings 21 | Inherits Global.System.Configuration.ApplicationSettingsBase 22 | 23 | Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings), MySettings) 24 | 25 | #Region "My.Settings Auto-Save Functionality" 26 | #If _MyType = "WindowsForms" Then 27 | Private Shared addedHandler As Boolean 28 | 29 | Private Shared addedHandlerLockObject As New Object 30 | 31 | _ 32 | Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs) 33 | If My.Application.SaveMySettingsOnExit Then 34 | My.Settings.Save() 35 | End If 36 | End Sub 37 | #End If 38 | #End Region 39 | 40 | Public Shared ReadOnly Property [Default]() As MySettings 41 | Get 42 | 43 | #If _MyType = "WindowsForms" Then 44 | If Not addedHandler Then 45 | SyncLock addedHandlerLockObject 46 | If Not addedHandler Then 47 | AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings 48 | addedHandler = True 49 | End If 50 | End SyncLock 51 | End If 52 | #End If 53 | Return defaultInstance 54 | End Get 55 | End Property 56 | End Class 57 | End Namespace 58 | 59 | Namespace My 60 | 61 | _ 64 | Friend Module MySettingsProperty 65 | 66 | _ 67 | Friend ReadOnly Property Settings() As Global.MySsisApplication2VB.My.MySettings 68 | Get 69 | Return Global.MySsisApplication2VB.My.MySettings.Default 70 | End Get 71 | End Property 72 | End Module 73 | End Namespace 74 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2VB/My Project/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2VB/MySsisApplication2VB.vbproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {5D9DE593-7278-4EBF-BE08-6C6073EA9FB8} 8 | WinExe 9 | MySsisApplication2VB.My.MyApplication 10 | MySsisApplication2VB 11 | MySsisApplication2VB 12 | 512 13 | WindowsForms 14 | v4.0 15 | 16 | 17 | AnyCPU 18 | true 19 | full 20 | true 21 | true 22 | bin\Debug\ 23 | MySsisApplication2VB.xml 24 | 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 25 | 26 | 27 | AnyCPU 28 | pdbonly 29 | false 30 | true 31 | true 32 | bin\Release\ 33 | MySsisApplication2VB.xml 34 | 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 35 | 36 | 37 | On 38 | 39 | 40 | Binary 41 | 42 | 43 | Off 44 | 45 | 46 | On 47 | 48 | 49 | 50 | False 51 | ..\..\..\..\..\..\..\..\..\..\Windows\assembly\GAC_MSIL\Microsoft.SqlServer.ConnectionInfo\11.0.0.0__89845dcd8080cc91\Microsoft.SqlServer.ConnectionInfo.dll 52 | 53 | 54 | False 55 | ..\..\..\..\..\..\..\..\..\..\Windows\assembly\GAC_MSIL\Microsoft.SqlServer.Management.IntegrationServices\11.0.0.0__89845dcd8080cc91\Microsoft.SqlServer.Management.IntegrationServices.dll 56 | 57 | 58 | False 59 | ..\..\..\..\..\..\..\..\..\..\Windows\assembly\GAC_MSIL\Microsoft.SqlServer.Management.Sdk.Sfc\11.0.0.0__89845dcd8080cc91\Microsoft.SqlServer.Management.Sdk.Sfc.dll 60 | 61 | 62 | False 63 | ..\..\..\..\..\..\..\..\..\..\Windows\assembly\GAC_MSIL\Microsoft.SqlServer.Smo\11.0.0.0__89845dcd8080cc91\Microsoft.SqlServer.Smo.dll 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | Form 90 | 91 | 92 | Form1.vb 93 | Form 94 | 95 | 96 | 97 | True 98 | Application.myapp 99 | 100 | 101 | True 102 | True 103 | Resources.resx 104 | 105 | 106 | True 107 | Settings.settings 108 | True 109 | 110 | 111 | 112 | 113 | Form1.vb 114 | 115 | 116 | VbMyResourcesResXFileCodeGenerator 117 | Resources.Designer.vb 118 | My.Resources 119 | Designer 120 | 121 | 122 | 123 | 124 | MyApplicationCodeGenerator 125 | Application.Designer.vb 126 | 127 | 128 | SettingsSingleFileGenerator 129 | My 130 | Settings.Designer.vb 131 | 132 | 133 | 134 | 141 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2VB/bin/Debug/MySsisApplication2VB.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2VB/bin/Debug/MySsisApplication2VB.exe -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2VB/bin/Debug/MySsisApplication2VB.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2VB/bin/Debug/MySsisApplication2VB.pdb -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2VB/bin/Debug/MySsisApplication2VB.vshost.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2VB/bin/Debug/MySsisApplication2VB.vshost.exe -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2VB/bin/Debug/MySsisApplication2VB.vshost.exe.manifest: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2VB/bin/Debug/MySsisApplication2VB.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | MySsisApplication2VB 6 | 7 | 8 | 9 | 10 | 11 | Returns the cached ResourceManager instance used by this class. 12 | 13 | 14 | 15 | Overrides the current thread's CurrentUICulture property for all 16 | resource lookups using this strongly typed resource class. 17 | 18 | 19 | 20 | A strongly-typed resource class, for looking up localized strings, etc. 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2VB/obj/Debug/DesignTimeResolveAssemblyReferences.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2VB/obj/Debug/DesignTimeResolveAssemblyReferences.cache -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2VB/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2VB/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2VB/obj/Debug/MySsisApplication2VB.Form1.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2VB/obj/Debug/MySsisApplication2VB.Form1.resources -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2VB/obj/Debug/MySsisApplication2VB.Resources.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2VB/obj/Debug/MySsisApplication2VB.Resources.resources -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2VB/obj/Debug/MySsisApplication2VB.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2VB/obj/Debug/MySsisApplication2VB.exe -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2VB/obj/Debug/MySsisApplication2VB.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2VB/obj/Debug/MySsisApplication2VB.pdb -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2VB/obj/Debug/MySsisApplication2VB.vbproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | C:\Users\jvanrossum\OneDrive\Documenten\Extending SSIS with .Net\02_Code\2012\Extending SSIS with .NET\Chapter 21\MySsisApplication2VB\bin\Debug\MySsisApplication2VB.exe 2 | C:\Users\jvanrossum\OneDrive\Documenten\Extending SSIS with .Net\02_Code\2012\Extending SSIS with .NET\Chapter 21\MySsisApplication2VB\bin\Debug\MySsisApplication2VB.pdb 3 | C:\Users\jvanrossum\OneDrive\Documenten\Extending SSIS with .Net\02_Code\2012\Extending SSIS with .NET\Chapter 21\MySsisApplication2VB\bin\Debug\MySsisApplication2VB.xml 4 | C:\Users\jvanrossum\OneDrive\Documenten\Extending SSIS with .Net\02_Code\2012\Extending SSIS with .NET\Chapter 21\MySsisApplication2VB\obj\Debug\MySsisApplication2VB.vbprojResolveAssemblyReference.cache 5 | C:\Users\jvanrossum\OneDrive\Documenten\Extending SSIS with .Net\02_Code\2012\Extending SSIS with .NET\Chapter 21\MySsisApplication2VB\obj\Debug\MySsisApplication2VB.Form1.resources 6 | C:\Users\jvanrossum\OneDrive\Documenten\Extending SSIS with .Net\02_Code\2012\Extending SSIS with .NET\Chapter 21\MySsisApplication2VB\obj\Debug\MySsisApplication2VB.Resources.resources 7 | C:\Users\jvanrossum\OneDrive\Documenten\Extending SSIS with .Net\02_Code\2012\Extending SSIS with .NET\Chapter 21\MySsisApplication2VB\obj\Debug\MySsisApplication2VB.vbproj.GenerateResource.Cache 8 | C:\Users\jvanrossum\OneDrive\Documenten\Extending SSIS with .Net\02_Code\2012\Extending SSIS with .NET\Chapter 21\MySsisApplication2VB\obj\Debug\MySsisApplication2VB.exe 9 | C:\Users\jvanrossum\OneDrive\Documenten\Extending SSIS with .Net\02_Code\2012\Extending SSIS with .NET\Chapter 21\MySsisApplication2VB\obj\Debug\MySsisApplication2VB.xml 10 | C:\Users\jvanrossum\OneDrive\Documenten\Extending SSIS with .Net\02_Code\2012\Extending SSIS with .NET\Chapter 21\MySsisApplication2VB\obj\Debug\MySsisApplication2VB.pdb 11 | D:\Chapter 21\MySsisApplication2\MySsisApplication2VB\obj\Debug\MySsisApplication2VB.exe 12 | D:\Chapter 21\MySsisApplication2\MySsisApplication2VB\obj\Debug\MySsisApplication2VB.xml 13 | D:\Chapter 21\MySsisApplication2\MySsisApplication2VB\obj\Debug\MySsisApplication2VB.pdb 14 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2VB/obj/Debug/MySsisApplication2VB.vbproj.GenerateResource.Cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2VB/obj/Debug/MySsisApplication2VB.vbproj.GenerateResource.Cache -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2VB/obj/Debug/MySsisApplication2VB.vbprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2VB/obj/Debug/MySsisApplication2VB.vbprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2VB/obj/Debug/MySsisApplication2VB.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | MySsisApplication2VB 6 | 7 | 8 | 9 | 10 | 11 | Returns the cached ResourceManager instance used by this class. 12 | 13 | 14 | 15 | Overrides the current thread's CurrentUICulture property for all 16 | resource lookups using this strongly typed resource class. 17 | 18 | 19 | 20 | A strongly-typed resource class, for looking up localized strings, etc. 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2VB/obj/Debug/TempPE/My Project.Resources.Designer.vb.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 21/Chapter 21/MySsisApplication2/MySsisApplication2VB/obj/Debug/TempPE/My Project.Resources.Designer.vb.dll -------------------------------------------------------------------------------- /Chapter 3/Chapter 3/CS Samples.txt: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Data; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | 9 | int[] myArray; // declares an array of int of any size 10 | myNumberedArray = new int[10]; // number is a 10-elements array 11 | myNumberedArray = new int[15]; // number is now a 15-elements array 12 | 13 | int[,,] 3DArray = new int[3,4,5]; 14 | Int[] numbers = new int[]{1,2,3,4,5}; 15 | 16 | Int[] numbers = new int[]{1,2,3,4,5,6,7,8,9}; 17 | numbers[4] = 12; 18 | 19 | 20 | List myList = new List(); 21 | myList.Add(1); 22 | myList.Add(2); 23 | myList.Add(3); 24 | myList.Add(4); 25 | 26 | int i = 0; 27 | while(i++ < 10) 28 | { 29 | // do something 30 | } 31 | //instantiate the array 32 | int[] numberArray = new int[]{1,2,3}; 33 | 34 | //instantiate the List 35 | List numberList = new List(); 36 | 37 | //Add elements to the list 38 | numberList.Add("a"); 39 | numberList.Add("b"); 40 | numberList.Add("c"); 41 | numberList.Add("d"); 42 | numberList.Add("e"); 43 | 44 | //iterate through the elements of the array 45 | for(int i = 0; i < numberArray.Length;i++) 46 | { 47 | //print out the value 48 | Console.WriteLine(numberArray[i]); 49 | } 50 | 51 | //iterate through the elements of the list in the same manner 52 | for(int i = 0; i < numberList.Count;i++) 53 | { 54 | //print out the value 55 | Console.WriteLine(numberList[i]); 56 | } 57 | 58 | int[] numbers = { 1, 2, 4, 6, 7, 9, -3, -1, 0 }; 59 | 60 | foreach (int i in numbers) 61 | { 62 | Console.Write("{0} ", i); 63 | } 64 | // Output: 1 2 4 6 7 9 -3 -1 0 65 | 66 | class exampleException : System.Exception{} 67 | // … do something 68 | throw new exampleException(); 69 | try 70 | { 71 | // Do something and throw different type of exceptions. 72 | } 73 | catch (CustomException ce) 74 | { 75 | ... 76 | } 77 | catch (AnotherCustomException ace) 78 | { 79 | ... 80 | } 81 | catch (Exception ex) 82 | { 83 | //the generic exception 84 | } 85 | 86 | -------------------------------------------------------------------------------- /Chapter 3/Chapter 3/VB Samples.txt: -------------------------------------------------------------------------------- 1 | Import System; 2 | Import System.Collections.Generic; 3 | Import System.Data; 4 | Import System.Linq; 5 | Import System.Text; 6 | Import System.Threading.Tasks; 7 | Dim myArray as int[]; 8 | 9 | Dim anArray As Integer(,,) = New Integer(2, 3, 4) {} 10 | Dim numbers As Int() = New Integer() {1, 2, 3, 4, 5} 11 | 12 | Dim numbers As Int() = New Integer() {1, 2, 3, 4, 5, 6, 7, 8, 9} 13 | numbers(4) = 12 14 | 15 | Dim myList As New List(Of Integer)() 16 | myList.Add(1) 17 | myList.Add(2) 18 | myList.Add(3) 19 | myList.Add(4) 20 | 21 | Dim index As Integer = 0 22 | While index <= 10 23 | Debug.Write(index.ToString & " ") 24 | index += 1 25 | End While 26 | 27 | 'instantiate the array 28 | Dim numberArray As Integer() = New Integer() {1, 2, 3} 29 | 30 | 'instantiate the List 31 | Dim numberList As New List(Of String)() 32 | 33 | 'Add elements to the list 34 | numberList.Add("a") 35 | numberList.Add("b") 36 | numberList.Add("c") 37 | numberList.Add("d") 38 | numberList.Add("e") 39 | 40 | 'iterate through the elements of the array 41 | For i As Integer = 0 To numberArray.Length - 1 42 | 'print out the value 43 | Console.WriteLine(numberArray(i)) 44 | Next 45 | 46 | 'iterate through the elements of the list in the same manner 47 | For i As Integer = 0 To numberList.Count - 1 48 | 'print out the value 49 | Console.WriteLine(numberList(i)) 50 | Next 51 | 52 | Dim numbers As Integer() = {1, 2, 4, 6, 7, 9, -3, -1, 0} 53 | 54 | For Each i As Integer In numbers 55 | Console.Write("{0} ", i) 56 | Next 57 | ' Output: 1 2 4 6 7 9 -3 -1 0 58 | 59 | Private Class exampleException Inherits System.Exception 60 | End Class 61 | ' … do something 62 | Throw New exampleException() 63 | 64 | Try 65 | ' Do something and throw different type of exceptions. 66 | Catch ce As CustomException 67 | 'do something 68 | Catch ace As AnotherCustomException 69 | ' do somerhing 70 | Catch ex As Exception 71 | 'the generic exception 72 | 73 | End Try -------------------------------------------------------------------------------- /Chapter 4 (SSIS 2012) (1).zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 4 (SSIS 2012) (1).zip -------------------------------------------------------------------------------- /Chapter 5 (SSIS 2014).zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 5 (SSIS 2014).zip -------------------------------------------------------------------------------- /Chapter 6 (SSIS 2012) (1).zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 6 (SSIS 2012) (1).zip -------------------------------------------------------------------------------- /Chapter 7 (SSIS 2014) (1).zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 7 (SSIS 2014) (1).zip -------------------------------------------------------------------------------- /Chapter 8 (SSIS 2012).zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 8 (SSIS 2012).zip -------------------------------------------------------------------------------- /Chapter 9 (SSIS 2012).zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/Chapter 9 (SSIS 2012).zip -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/extending-ssis-w-.net-scripting/f472e62f78b9d954a43d211bfd9980daa167e094/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Apress Source Code 2 | 3 | This repository accompanies [*Extending SSIS with .NET Scripting*](http://www.apress.com/9781484206393) by Joost van Rossum and Regis Baccaro (Apress, 2015). 4 | 5 | ![Cover image](9781484206393.jpg) 6 | 7 | Download the files as a zip using the green button, or clone the repository to your machine using Git. 8 | 9 | ## Releases 10 | 11 | Release v1.0 corresponds to the code in the published book, without corrections or updates. 12 | 13 | ## Contributions 14 | 15 | See the file Contributing.md for more information on how you can contribute to this repository. 16 | -------------------------------------------------------------------------------- /contributing.md: -------------------------------------------------------------------------------- 1 | # Contributing to Apress Source Code 2 | 3 | Copyright for Apress source code belongs to the author(s). However, under fair use you are encouraged to fork and contribute minor corrections and updates for the benefit of the author(s) and other readers. 4 | 5 | ## How to Contribute 6 | 7 | 1. Make sure you have a GitHub account. 8 | 2. Fork the repository for the relevant book. 9 | 3. Create a new branch on which to make your change, e.g. 10 | `git checkout -b my_code_contribution` 11 | 4. Commit your change. Include a commit message describing the correction. Please note that if your commit message is not clear, the correction will not be accepted. 12 | 5. Submit a pull request. 13 | 14 | Thank you for your contribution! --------------------------------------------------------------------------------