从Sql Server 2008调用dll
问题描述:
我能够从sql server 2008调用dll,但是sql server仅接受void返回类型.我在dll中有返回类对象的方法,然后调用该对象的方法.我该怎么做.
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.
答
你好,
首先使用sp_addextendedproc注册dll,然后
使用master Go sp_addextendedproc" FunctionName","Dll Path"
希望对您有帮助
谢谢
sanjeev
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
或关注
http://sqlserver-training.com/can-we-call-dll- from-sql-server/- [ ^ ]
谢谢
sanjeev
or follow
http://sqlserver-training.com/can-we-call-dll-from-sql-server/-[^]
thanks
sanjeev