我正在尝试部署基本的自定义组件,遵循此处的文档
我的自定义组件代码如下:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.SqlServer.Dts.Pipeline;
namespace MattsCustomComponent
{
[DtsPipelineComponent (DisplayName = "Matts Custom Component", ComponentType = ComponentType.Transform)]
public class MattsCustomComponent : PipelineComponent
{
public override void ProcessInput(int inputID, PipelineBuffer buffer)
{
int numberOfRows = buffer.RowCount;
bool eof = buffer.EndOfRowset;
}
}
}
Run Code Online (Sandbox Code Playgroud)
你可以看到它是非常基本的.但是当我将dll部署到GAC并且C:\Program Files\Microsoft SQL Server\100\DTS\PipelineComponents
它没有出现在SSIS工具栏中,我在添加自定义组件时遗漏了什么?在线指南似乎都说你只需要将dll复制到gac和相关文件夹.