Go Back   CORTEX Forums > Local Happenings > CORTEX Blogs > Random Procrastination
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read

Random Procrastination Darren Gosbell is a SQL Server expert and Microsoft 'Most Valued Professional' who works as a Principal Consultant at James & Monroe. His blog covers Business Intelligence, SQL Server, .Net, Powershell and MDX Madness

Reply
 
LinkBack Thread Tools Display Modes
Old 2nd July 2009, 12:56 PM   #1 (permalink)
Member
 
Join Date: Jun 2009
Posts: 27
Darren Gosbell is on a distinguished road
Thumbs up SSAS: Creating a Rowset action with the ExecuteSQL .Net stored procedure

A few weeks ago I did a post introduced the ExecuteSQL .net stored procedure for SSAS. Chris Webb asked if this function can be called from Excel 2007 when it is set this up as a rowset action and I figured that this would make a good topic for a blog post. So the following screen shots show how you would go about setting up such an action. As a quick example I cheated a bit and set up an Rowset action that calls the sp_who2 system stored procedure. This way I did not have a depedancy on any particular database. You don't have to use a stored procedure, you can use any sort of SQL command that returns a set of rows into a rowset action.

Below is how I setup the action:

*

When you right click on a cell in a pivot table you will see the following:



And clicking on the "Rowset Action" creates another sheet that looks like this:



Since I posted about the ExecuteSQL function I have made a slight change to the code I checked into the ASStoredProcedure project on codeplex. I have now moved it into a separate "SQLQuery" project so that it compiles to it's own .dll file and does not have to be deployed with the same impersonation mode as the main ASSP assembly.

*

Technorati Tags: ASSP, Analysis Services, Stored Procedures, Codeplex





More...
Darren Gosbell is offline   Reply With Quote
Reply

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Drug & Alcohol Action Team uses SAS to tackle drugs and save lives by improving joine Latest News Headlines SAS Forum 0 1st July 2009 10:59 AM
SSAS: Are my Aggregations processed? Darren Gosbell Random Procrastination 0 23rd June 2009 08:30 PM
SSAS: There is no such thing as an Attribute in MDX! Darren Gosbell Random Procrastination 0 23rd June 2009 08:30 PM
SSAS: T-SQL Equivalent for a Many-to-Many relationship Darren Gosbell Random Procrastination 0 23rd June 2009 08:30 PM
SAS CEO closes the World Economic Forum on Latin America with call for action from pr Latest News Headlines SAS Forum 0 22nd April 2009 01:16 AM


All times are GMT +11. The time now is 08:02 PM.

© The Business Intelligence Group

Search Engine Optimization by vBSEO 3.3.0