>Vi annuncio che la scelta è stata modifcare i dts e aggiornare il DB, per cui ho iniziato a lavorare sul serio sulla cosa.
sono contento per te 
>Ora vi pongo un problema, in una trasformazione mi trovo da vore
>gestire l'inserimento di una colonna mediante una activex come
>posso vare la stessa cosa con un script C#?
dovrai utilizzare uno Script Component come trasformazione appunto e gestire l'evento (se non ricordo male) ProcessInputRow..
Qui di seguito ci sono alcuni tips & tricks che scrissi tempo fa (2005 e 2008 sono le versioni di cui parlo in quei post) e magari possono aiutarti:
http://blogs.dotnethell.it/suxstellino/DataFlow-%E2%80%93-Script-Component-come-sorgente__7477.aspx
http://blogs.dotnethell.it/suxstellino/Come-scrivere-codice-con-gli-Script-task-e-component__15462.aspx
http://blogs.dotnethell.it/suxstellino/SSIS-Scrittura-del-codice-su-Script-Task__11518.aspx
http://blogs.dotnethell.it/suxstellino/Script-Component-Passthrough-delle-colonne-di-input-sync-vs-async__18422.aspx
http://blogs.dotnethell.it/suxstellino/SSIS-Come-creare-un-file-di-configurazione-articoli-utili__18107.aspx
http://blogs.dotnethell.it/suxstellino/Come-creare-un-file-di-configurazione-con-SSIS__17575.aspx
scrivevo tanto su SSIS poi ho smesso di usarlo..
>Ho smanettato sul componente ma non ho trovato nessun punto dove inserire lo script.
nel 2012 ti dà questo:
/// <summary>
/// This method is called once, before rows begin to be processed in the data flow.
///
/// You can remove this method if you don't need to do anything here.
/// </summary>
public override void PreExecute()
{
base.PreExecute();
/*
* Add your code here
*/
}
/// <summary>
/// This method is called after all the rows have passed through this component.
///
/// You can delete this method if you don't need to do anything here.
/// </summary>
public override void PostExecute()
{
base.PostExecute();
/*
* Add your code here
*/
}
/// <summary>
/// This method is called once for every row that passes through the component from Input0.
///
/// Example of reading a value from a column in the the row:
/// string zipCode = Row.ZipCode
///
/// Example of writing a value to a column in the row:
/// Row.ZipCode = zipCode
/// </summary>
/// <param name="Row">The row that is currently passing through the component</param>
public override void Input0_ProcessInputRow(Input0Buffer Row)
{
/*
* Add your code here
*/
}
i commenti mi sembrano piuttosto chiari..
La guida su MSDN è qui:
http://msdn.microsoft.com/en-us/library/ms136118.aspx
Alessandro Alpi | SQL Server MVP
MCP|MCITP|MCTS|MCT
http://blogs.dotnethell.it/suxstellino
http://suxstellino.wordpress.com
http://mvp.microsoft.com/profiles/Alessandro.Alpi