Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 933587
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T20:51:27+00:00 2026-05-15T20:51:27+00:00

Using either a view and/or stored procedure, I can return the results of executing

  • 0

Using either a view and/or stored procedure, I can return the results of executing an MDX query against SQL Analysis Services (using OPENROWSET against a linked SSAS Server into SQL).

Unfortunately, the resultset doesn’t include a PK field…or for that matter, even a column which COULD act as a PK if I were to hack the model.

Can anyone think of a hacktacular trick I can use to:

  1. Add a field to my result which inserts some auto-incrementing value (to act as a PK candidate)
  2. Somehow set this field to be the PK so that I can easily build an entity off of it?

I’m 99% sure the answer is “no”. At this point I can already get data back from SSAS by using an SSRS report with OData rendering…but I have to create my types manually when I use play w/ LINQ.

If someone can nail #1 & #2 for me, this may be a potentially better way to access the data since the Modeler would create my types (entities) for me.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T20:51:28+00:00Added an answer on May 15, 2026 at 8:51 pm

    I’m not sure I understand why you can’t have a column that could act as a primary key. I just ran a similar query against one of my cubes filtered to a list of members and each column name contained the member name. Here is an example:

    Submission:

     SELECT Measures.members ON ROWS,
     Customer.[CustomerIdKeyField].[UniqueCustomerId] ON COLUMNS
     FROM [Postage Prints]
    

    Returned:

    (colum header)  [Measures].[MeasuresLevel].[MEMBER_CAPTION] [Customer].[CustomerIdKeyField].&[UniqueCustomerId]
    
    (row) Measure1  9.6800000000000015
    
    (row) Measure2  22
    
    (row) Measure3  1
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using ElementTree to load up a series of XML files and parse
So i just started using ASP.NET MVC and i'm really liking it, except i
I am using an SVG image on a page (via the CSS background-image property)
In a project that we are using WF4, it is a requirement to show
i am going Nuts, i am using MVCContrib, to create pluggable site using Portable
I am able to pull a webpage into my code as a long string.
am a noob at universal apps so please help me out and let me
Pre-Honeycomb (Android 3), each Activity was registered to handle button clicks via the onClick tag
I'm trying to present a TabBarController on top of another TabBarController. My application's MainWindow.xib
I am aware of how to add EditText but not in the onDraw() function.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.