April 9, 2012 at 7:44 am
Hi All,
I need to do some complex calculation, where I must use dynamic sql. The problem is, I need to do everyting inside view, hence I throught I will do the calculation inside a function and then call the frunction from the view, but it seems UDF doesnot support dynamic sql.
I cannot use SP as this is a BI/BO environment.
Please help me for any workaround.
Regards,
Arup
April 9, 2012 at 8:07 am
you are correct; dynamic SQL is not allowed in a UDF, dynamic SQL limits you to either a procedure or ad-hoc code that will need to be built and executed clientside.
what exactly are you trying to do?
There's probably a way to do what you ask without dynamic SQL.
Lowell
April 9, 2012 at 10:10 pm
Hi Lowell,
Thanks for your reply. We need to call a function from a view; the function contains complex calculation, whuch needed dynamic sql.
There are number of limitations:
1. We cant call sp from view, hence going for UDF
2. UDF doesnot support dynamic sql, which is necessory.
Is there any way to accomplish this?
Regards,
Arup
April 9, 2012 at 10:39 pm
Show us what you are trying to accomplish, show us all the code.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply