SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Accessing .NET assemblies with SSIS


Accessing .NET assemblies with SSIS

Author
Message
Dinesh Priyankara
Dinesh Priyankara
SSC-Addicted
SSC-Addicted (483 reputation)SSC-Addicted (483 reputation)SSC-Addicted (483 reputation)SSC-Addicted (483 reputation)SSC-Addicted (483 reputation)SSC-Addicted (483 reputation)SSC-Addicted (483 reputation)SSC-Addicted (483 reputation)

Group: General Forum Members
Points: 483 Visits: 115
Comments posted here are about the content posted at http://www.sqlservercentral.com/columnists/dPriyankara/3180.asp
Jignesh Mehta
Jignesh Mehta
SSCrazy
SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)

Group: General Forum Members
Points: 2707 Visits: 90

Hi Dinesh,

I will appreciate, if the steps has been given for adding to GAC. This will be helpful for all if one don't have or have little knowledge on GAC




Warm Regards,

Jignesh Mehta

Dinesh Priyankara
Dinesh Priyankara
SSC-Addicted
SSC-Addicted (483 reputation)SSC-Addicted (483 reputation)SSC-Addicted (483 reputation)SSC-Addicted (483 reputation)SSC-Addicted (483 reputation)SSC-Addicted (483 reputation)SSC-Addicted (483 reputation)SSC-Addicted (483 reputation)

Group: General Forum Members
Points: 483 Visits: 115

Hi, Jignesh,

Thanks for the comment. I should have added that part too.

Assembly can be added to the GAC by using .NET framework 2.0 Configuration. This is listed under Control Panel-> Administrative tools. Open it and expand .NET Framework 2.0 Configuration- expand My Computer. Select Assembly Cache. Click on the second link Add an assembly to the assembly cache link in right pane. Browse the assembly and add. Done!


Glenn Hooton
Glenn Hooton
Grasshopper
Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)

Group: General Forum Members
Points: 15 Visits: 20
It might have also been a good idea to mention that you can also put assemblies into C:\Program Files\Microsoft SQL Server\90\SDK\Assemblies and that they have to be strongly named to appear in the list. It is possible to use private assemblies in code but to do that you have to use late binding and something along the lines of Activator.CreateInstanceFrom
chegusand
chegusand
Grasshopper
Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)

Group: General Forum Members
Points: 15 Visits: 7
Hi I implemented this solution: I created a dll which centralized all the main functionalities, I placed in the GAC following the step mentioned in this article and now it's referenced by many script tasks.
The problem I found with this approach, is that every time I updated the dll, I had to open each script task and refreshed (remove and then add) the reference to the dll. If I didn't do that I received this error message:
Error: The script threw an exception: Could not load file or assembly '[dll-name], Version=1.1.0.0, Culture=neutral, PublicKeyToken=d683c8b35189db35' or one of its dependencies. The system cannot find the file specified.

Does anybody know a way to update the dll without refreshing each script task one by one?


Thanks in advance.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search