I don’t want to add custom assembly in GAC. Here is my research.
There is no direct way to do that from integration services packages, because the only workaround is using CurrentDomain_AssemblyResolve
function – loading an assembly from a location instead of installing it into GAC.
There are 3 ways for using custom dll’s on deployment:
- Assigning DLL’s to the GAC
- Using the
AssemblyResolve
Function - Copy all Dll’s to the sql server DTS Assemblies folder (example for SQL Server 2008:
C:\Program Files\Microsoft SQL Server\100\DTS\Binn
) and to the .Net framework assemblies folder.
There could be an interesting workaround by using a Web Service instead of direct dll, so you can create a web service which contains the methods you are using and add a Web reference instead of a Local assembly
This might be your starting point.
Using custom DLL in script task
Resources
https://www.codeproject.com/Articles/895028/Refering-dlls-in-SSIS-Script-Task
https://www.dotnetspider.com/resources/45645-How-to-use-custom-DLL-in-SSIS-Package.aspx
Add to favorites