Extended Stored Procedures

G

Guest

I have written an Extended Stored Procedure and it works fine. In the installation intructions it is said that you must copy the .dll to SQLServer's binn directory. Why not put it in the GAC? (and ngen it!
/Folke
 
J

Joe Delekto

Greets,

The extended stored procedure is a normal Win32 DLL and not a managed
DLL (at least not yet). It requires being copied to that specific folder
because that is where the engine loads extension DLLs, using the
LoadLibrary()/GetProcAddress() Win32 API functions. It doesn't require ngen
because it's already native code. It's almost similar to an ISAPI filter,
only the IIS manager allows you to specify where that DLL exists.

Regards,

Joe

Folke said:
I have written an Extended Stored Procedure and it works fine. In the
installation intructions it is said that you must copy the .dll to
SQLServer's binn directory. Why not put it in the GAC? (and ngen it!)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top