Creating a SSAS Rowset Action

Who is online?  0 guests and 0 members
Home  »  Blogs  »  BrianKnight  »  Creating a SSAS Rowset Action
 
0
/5
Avg: 0/5: (0 votes)

Comments (2)

DaveRussell
DaveRussell said:

I read Brain Knight's excellent post on SSAS Rowset Actions right after I wrote a dll to do roughly the same thing.  My dll works great when I hard code parameter values but I can't get the action code to work in SSAS. I have tried in vain for many hours :(

I would really appreciate it if anyone has a moment to point out my error.

This call works great from SSMS:

call sqlFetch.GetData('Provider=SQLNCLI10;Server=mcwbidev\Jaguar;Database=FinAdminDW; Trusted_Connection=yes','Select * from Common.dim_Installment where AwardID=0')

Notice the hard coded zero for the AwardId. Now I need to dynamically build the AwardId.  The parameter is an int so this is what I tried (in SSAS on the Actions tab):

"call SqlFetch.GetData('Provider=SQLNCLI10;Server=mcwbidev\Jaguar;Database=FinAdminDW; Trusted_Connection=yes','Select * from Common.dim_Installment where AwardID = "+[Award].[Award Id].MemberValue+"');"

This fails with this error:

Execution of the managed stored procedure GetData failed with the following error: Exception has been thrown by the target of an invocation. Invalid column name '+[Award].[Award Id].MemberValue+'.

I'm pretty sure I'm making a silly error with the quotes but, I have tried many variations for hours without success.

Thanks in advance for any help resolving this issue!

7/21/2010
 · 
 
by
samikane
samikane said:

Here are this and some other articles on SSAS Actions: http://ssas-wiki.com/w/Articles#Actions

2/24/2011
 · 
 
by
Blogs RSS Feed

BrianKnight's latest blog posts

Blogs RSS Feed

Latest community blog posts