English 中文(简体)
Can SSIS ScriptTask References resolve to a non GAC location?
原标题:

In SSIS 2008, the ability to reference other class libraries has been added. Is there anyway to resolve the references to a non-GAC location when deployed to a non-developer environment? For instance, if I add a reference to c:libmylib.dll in an SSIS script task then deploy that package to another machine. Can I simply place mylib.dll in the same location to have it resolved? When I try this I am receiving an error that the specified script task is failing to load.

最佳回答

No, I m afraid putting it in GAC is mandatory.

问题回答

The only way I have been able to get around this is to use reflection. I manually loaded the assembly using Assembly.LoadFile(fileName) then use the Activator class to instantiate the object. This method works best using a VB.NET script task without setting OPTION EXPLICIT ON.





相关问题
Export tables from SQL Server to be imported to Oracle 10g

I m trying to export some tables from SQL Server 2005 and then create those tables and populate them in Oracle. I have about 10 tables, varying from 4 columns up to 25. I m not using any constraints/...

SQL server: Can NT accounts be mapped to SQL server accounts

In our database we have an SQL server account that has the correct roles to access some of the databases. We are now switching to windows authentication and I was wondering if we can create a NT user ...

SQL Server 2000, ADO 2.8, VB6

How to determine if a Transaction is active i.e. before issuing Begin Transaction I want to ensure that no previous transaction are open.. the platform is VB6, MS-SQL Server 2000 and ADO 2.8

热门标签