For Programmers: Free Programming Magazines  


Home > Archive > C# > January 2006 > Load Assembly into memory at runtime.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Load Assembly into memory at runtime.
hc

2006-01-23, 7:03 pm

Hi all,

I am currently investigating different methods of calling assemblies
from sql server 2005. I have saved what I believe to be the byte array
of an assembly (from adding the assembly to sql server 2005 and copying
the byte[] from the create script) into a database table which is a
varbinary(max) datatype. I am able to return a different byte[]
depending on a query and pass it into a clr stored procedure (which at
the moment only displays the length of the object returned), and need
to know whether it is possible to load this assembly / create an
instance of it at runtime so that I can call a function from within it.
I have read quite a lot up on reflection but am not 100% sure how to do
it so any help would be well received.

If this isn't possible could you please tell me and maybe give me
advice on better ways of doing this.

Thanks, H

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com