入力を読み取り、いくつかの小さなことを行い、それを OLEDB 接続に送信するカスタム SSIS 送信先コンポーネントを構築しています。myconn という OLEDB 接続があり、ProcessInput メソッドについて、入力から myconn OLEDB 接続に行を送信するための構文を知りたいです。
public override void ProcessInput(int inputID, PipelineBuffer buffer)
{
while (buffer.NextRow())
{
try
{
// Some Code here to send the data from the input to the OLEDB data destination (i.e. myconn )
}
catch (Exception ex)
{
throw ex;
}
}
if (buffer.EndOfRowset)
{
myconn .Close();
}
}
ProcessInput メソッドについては、いつも少し迷ってしまいます。1行か2行のコードでよいのではないでしょうか。