Click here to Skip to main content
15,886,963 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am able to call dll from sql server 2008 but sql server accepts only void return type. I have method in dll which returns object of the class and then call method of that object. How can I do this.
Posted

hello,

first register the dll using sp_addextendedproc and then
use master Go sp_addextendedproc ” FunctionName ” , ” Dll Path ”


hoping it will help you

thanks
sanjeev
 
Share this answer
 
Comments
SatyaKeerthi15 20-Jul-11 3:21am    
Did you understand my query. I have created the assembly and Stored Procedure. I can talk to dll method which have 'void' as return type. But I need to call the method which returns object of the class. How can I do this
 
Share this answer
 
Comments
[no name] 22-Jul-11 11:48am    
There is no need to give multiple answers to the same question, if you want to improve your answer, use the 'Improve solution' link or add comments to your existing answer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900