Building Custom Tasks for SQL Server Integration Services by Andy Leonard
Author:Andy Leonard
Language: eng
Format: epub
Publisher: Apress, Berkeley, CA
After adding this code, your class should appear similar to that shown in Figure 5-12.
Figure 5-12.Overriding the Validate function
The Validate method is called when the task is added to the SSIS Control Flow, when a property changes, and when a task is executed. The line Return DTSExecResult.Success tells the method to return Success—which translates to “I think I am ready to run” in Task-Speak—to the Control Flow when the method is invoked.
Overriding the Execute Method
As with the Validate method, we override the inherited Execute method with a bare minimum of functionality. Again, this is not production-ready code.
Add the Execute method override by adding the following code to the ExecuteCatalogPackageTask class:
Public Overrides Function Execute(ByVal connections As Connections, _
ByVal variableDispenser As VariableDispenser, _
ByVal componentEvents As IDTSComponentEvents, _
ByVal log As IDTSLogging, _
ByVal transaction As Object) As DTSExecResult
Return DTSExecResult.Success
End Function
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8309)
Azure Data and AI Architect Handbook by Olivier Mertens & Breght Van Baelen(6802)
Building Statistical Models in Python by Huy Hoang Nguyen & Paul N Adams & Stuart J Miller(6778)
Serverless Machine Learning with Amazon Redshift ML by Debu Panda & Phil Bates & Bhanu Pittampally & Sumeet Joshi(6668)
Data Wrangling on AWS by Navnit Shukla | Sankar M | Sam Palani(6451)
Driving Data Quality with Data Contracts by Andrew Jones(6395)
Machine Learning Model Serving Patterns and Best Practices by Md Johirul Islam(6154)
Learning SQL by Alan Beaulieu(6004)
Weapons of Math Destruction by Cathy O'Neil(5795)
Big Data Analysis with Python by Ivan Marin(5394)
Data Engineering with dbt by Roberto Zagni(4400)
Solidity Programming Essentials by Ritesh Modi(4048)
Time Series Analysis with Python Cookbook by Tarek A. Atwan(3907)
Pandas Cookbook by Theodore Petrou(3611)
Blockchain Basics by Daniel Drescher(3306)
Hands-On Machine Learning for Algorithmic Trading by Stefan Jansen(2914)
Feature Store for Machine Learning by Jayanth Kumar M J(2820)
Learn T-SQL Querying by Pam Lahoud & Pedro Lopes(2803)
Mastering Python for Finance by Unknown(2748)
