简体   繁体   English

如何在SSIS程序包中使用第三方dll

[英]how to use a third party dll in ssis package

I need to use a third party dll in an SSIS package that I have built. 我需要在已构建的SSIS程序包中使用第三方dll。 I know from past work that the DLL has to be registered in the GAC and that requires it to be a strong named assembly. 从过去的工作中,我知道DLL必须在GAC中注册,这要求它是一个强大的命名程序集。 For the dlls that I have written and used in packages, creating a strong named assembly is easy using a SNK file and compiling the source thus creating the dll. 对于我已在程序包中编写和使用的dll,使用SNK文件并编译源代码即可轻松创建一个强大的命名程序集。 But how can this be done on a 3rd party dll when I don't have the source. 但是当我没有源代码时,如何在第三方dll上完成此操作。

The target system is Windows Server 2012 which does not have the GacUtil.exe file so I used a Powershell script to do the load. 目标系统是Windows Server 2012,它没有GacUtil.exe文件,因此我使用Powershell脚本进行加载。 For the dlls I created I am able to successfully load into the GAC and then see the entry but not for the 3rd party dlls. 对于我创建的dll,我能够成功加载到GAC中,然后看到条目,但对于第三方dll则看不到。

Thanks in advance to anyone that can help solve this problem. 预先感谢任何可以帮助解决此问题的人。

它可能不适用于您的情况,但是我之前所做的是创建一个控制台程序来包装dll,然后在SSIS中从“执行过程任务”中调用此控制台程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM