dbTalk Databases Forums  

User defined functions running on the server??

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss User defined functions running on the server?? in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Will Muldrew
 
Posts: n/a

Default User defined functions running on the server?? - 01-06-2005 , 10:11 AM






Hi

I've written a COM component containing user defined functions for analysis
services. It works fine client-side, however I want to execute my queries
on the analysis services server using 'Execution Location=3' in the connection
string. However, it doesn't appear to be happening server-side and I'm trying
to understand why.

1). Is it possible to use UDFs server-side?
2). If so, is it possible to specify calculated members in the MDX (using
'with member') that reference UDFs and have them execute server-side. I
need to do this since I want to be able to supply extra params to the udf
function when I build the MDX query.

Any help would be appreciated!

Thanks

Will Muldrew




Reply With Quote
  #2  
Old   
Steve McHugh
 
Posts: n/a

Default Re: User defined functions running on the server?? - 01-10-2005 , 04:59 AM






If I understand what you're saying correctly I think you'll find you
have to register your component on the server and the client if you
want a client to be able to use it and have calc members referring to
it.

Try that and see you you get the result you're after, I'm not sure but
I don't think execution location is rellevant with UDFs.

Steve


Reply With Quote
  #3  
Old   
Will Muldrew
 
Posts: n/a

Default Re: User defined functions running on the server?? - 01-12-2005 , 05:33 AM



Hello Steve,

We've been happily using our UDF registered only on the client side (excel)
without having it on the server, but I'd like it only to have to be on the
server so I can avoid having to deploy it to all the client machines. I'd
like to be sure that this is possible before I try it because it would involve
porting the UDF lib to 64bit which is particularly involved since it's written
in C++ with ATL7.

Will

Quote:
If I understand what you're saying correctly I think you'll find you
have to register your component on the server and the client if you
want a client to be able to use it and have calc members referring to
it.

Try that and see you you get the result you're after, I'm not sure but
I don't think execution location is rellevant with UDFs.

Steve




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.