Hi,
I want to validate/examine my Data Flow Task components (Flat File Source, Derived Column, Row Count, OleDB Destination, etc.). When looping through my components, I can find properties like Name and Id, but it seems hard to get the actual component type. So far I only get a type that indicates whether it is a source, transformation or destination.
MainPipe pipeline = taskHost.InnerObject as MainPipe; foreach (IDTSComponentMetaData100 DataFlowComponent in pipeline.ComponentMetaDataCollection) { Console.WriteLine("Name: " + DataFlowComponent.Name); // Name of transformation Console.WriteLine("Type: " + DataFlowComponent.ObjectType.ToString()); // int 9=source, 10=destination, 12=transformation }
Any suggestions (other than parsing the package XML code)?
Please mark the post as answered if it answers your question | My SSIS Blog: http://microsoft-ssis.blogspot.com | Twitter