SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Link server Issue


Link server Issue

Author
Message
amit_pjoshi
amit_pjoshi
SSC-Enthusiastic
SSC-Enthusiastic (124 reputation)SSC-Enthusiastic (124 reputation)SSC-Enthusiastic (124 reputation)SSC-Enthusiastic (124 reputation)SSC-Enthusiastic (124 reputation)SSC-Enthusiastic (124 reputation)SSC-Enthusiastic (124 reputation)SSC-Enthusiastic (124 reputation)

Group: General Forum Members
Points: 124 Visits: 78
Hello expert,
Can you please help me?
I have created the c# project VFE_AS_Functions to build the Like function to be used in MDX query and deployed the assembly under the assemblies folder of cube but I’m getting issue while accessing the query using Link server:
1) It displays result when we call this function under MDX query only

WITH 


set BradSet as [Shop].[Shop Model].[Brand].&[Brand1]

SELECT {
[Measures].[Stores2 Sales Quantity]
} ON COLUMNS,
NonEmpty(BradSet) ON ROWS
FROM Cube1
WHERE (
VFE_AS_Functions.Like(
NonEmpty([Articles].[A1].[A1],
(StrToMember("[Shop].[Shop Model].[Brand].&[Brand1]"),
[Measures].[Sales Quantity])),
"%",
[Articles].[A1].CURRENTMEMBER.MEMBER_CAPTION
)
)




2) But gives error while accesing query using Link server.
SELECT * from OPENQUERY(LinkServerName, 'WITH 

set BradSet as [Shop].[Shop Model].[Brand].&[Brand1]

SELECT {
[Measures].[Stores2 Sales Quantity]
} ON COLUMNS,
NonEmpty(BradSet) ON ROWS
FROM Cube1
WHERE (
VFE_AS_Functions.Like(
NonEmpty([Articles].[A1].[A1],
(StrToMember("[Shop].[Shop Model].[Brand].&[Brand1]"),
[Measures].[Sales Quantity])),
"%",
[Articles].[A1].CURRENTMEMBER.MEMBER_CAPTION
)
)')




I think this assembly information should be included in OLAP Link server... please help me... how to fix this issue.
PB_BI
PB_BI
SSCarpal Tunnel
SSCarpal Tunnel (4.5K reputation)SSCarpal Tunnel (4.5K reputation)SSCarpal Tunnel (4.5K reputation)SSCarpal Tunnel (4.5K reputation)SSCarpal Tunnel (4.5K reputation)SSCarpal Tunnel (4.5K reputation)SSCarpal Tunnel (4.5K reputation)SSCarpal Tunnel (4.5K reputation)

Group: General Forum Members
Points: 4490 Visits: 2745
Hello again :-)

I have to admit I don't have experience of this myself but I'd imagine it's something to do with permissions. Have a read of this article, paying attention to the section on security as it may provide an answer.

Either way, post back as I'm intrigued.....

Oh and check out the analysis services stored procedure project. It has a LIKE function and much much more :-)




I'm on LinkedIn
amit_pjoshi
amit_pjoshi
SSC-Enthusiastic
SSC-Enthusiastic (124 reputation)SSC-Enthusiastic (124 reputation)SSC-Enthusiastic (124 reputation)SSC-Enthusiastic (124 reputation)SSC-Enthusiastic (124 reputation)SSC-Enthusiastic (124 reputation)SSC-Enthusiastic (124 reputation)SSC-Enthusiastic (124 reputation)

Group: General Forum Members
Points: 124 Visits: 78
:-) Thank you so much for your reply, get back to you on this.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search