SSIS provides a mechanism to automatically encrypt the sensitive properties of your Connection Manager (or Task) based on the package ProtectionLevel. To make use of this in your custom code, you’ll need to do two things: Implement the IDTSComponentPersist interface Add a Sensitive=”1” attribute to one or more elements of your persisted Connection Manager (or … Continued
How to Localize Your Custom Task
The DtsTask attribute has a LocalizationType member. This should be your resource class. SSIS will look for two properties: TaskDisplayName TaskDescription These must be public, static string properties on your “LocalizationType” class. Your task code would look like this:
|
1 2 3 4 |
[ DtsTask( LocalizationType = typeof(Resources) ) ] public class ExecuteCatalogPackageTask : Task { } |
You can add localizable string resources to your class from the Project settings: Note, the … Continued
Automatically Select Input Columns in a Custom Data Flow Component
The following code snippet can be used in a custom data flow component to automatically select all input columns when you attach a path.
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
public override void OnInputPathAttached(int inputID) { base.OnInputPathAttached(inputID); for (int i = 0; i < ComponentMetaData.InputCollection.Count; i++) { ComponentMetaData.InputCollection[i].InputColumnCollection.RemoveAll(); IDTSVirtualInput100 input = ComponentMetaData.InputCollection[i].GetVirtualInput(); foreach (IDTSVirtualInputColumn100 vcol in input.VirtualInputColumnCollection) { input.SetUsageType(vcol.LineageID, DTSUsageType.UT_READONLY); } } } |
This is the equivalent to clicking the Select All box in the Advanced Editor.


