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 719753
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T05:40:48+00:00 2026-05-14T05:40:48+00:00

My SSRS report fetches data from my DATAWAREHOUSE. The ASP.NET application I have is

  • 0

My SSRS report fetches data from my DATAWAREHOUSE.

The ASP.NET application I have is connected to an OLTP database.

I invoke the SSRS Report from my ASP.NET application and provide a parameter as CustomerID(this is an application key in datawarehouse) to my report.

Since my report is connected to my datawarehouse, I do not query my report databased on the OLTP’s CustomerID. Instead I use my datawarehouse’s surrogate key (CustomerDimKey).
Now, in my report, I need to find the correct surrogate key for the CustomerID parameter, which I passed from my ASP.NET application!

My report already has a parameter as @CustomerDimKey(this is used across all the report sprocs). We used it for testing, but now we’ll hide this as we have integrated it with the ASP.NET application.

I have already added a new parameter to the report as @CustomerID(this will have the OLTP’s CustomerID), which will now get a value from ASP.NET.

I need to know a way to re-use the @CustomerDimKey report parameter, which should now get value from a sql statement or a sproc once the report is requested.
Based on the value contained by the @CustomerID parameter.

  • 1 1 Answer
  • 4 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-14T05:40:48+00:00Added an answer on May 14, 2026 at 5:40 am

    Sounds pretty simple. Assuming you have SQL or a stored proc that can look up the CustomerDimKey, just add a dataset that does so using @CustomerID parameter then selects that CustomerDimKey. Let’s assume it’s a stored proc called LookUpCustomerDimKey that takes the @CustomerID and an output parameter @CustomerDimKey. I’d create a report dataset like so:

    declare @CustomerDimKey bigint
    
    exec LookUpCustomerDimKey @CustomerID, @CustomerDimKey out
    
    select @CustomerDimKey CustomerDimKey
    

    Then set the CustomerDimKey report parameter to be internal and get its default value from the query I just created. Now the report will wait for CustomerID to be provided then calculate the CustomerDimKey before using it in your other report datasets.

    It doesn’t have to be a stored proc, of course. You just have to make sure the body of the dataset produces a single row result set containing the key. It can be a simple SQL select or a series of TSQL statements or stored proc calls. Pretty much anything that you could put into a stored proc can go into the dataset body. It just needs to ultimately produce a row.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have called ssrs report from asp.net using reportviewer. When viewing the report from
I have a single tablix on the SSRS report which fetches data from a
I have SSRS report with its own datasets coming straight from the database. I
I have an SSRS report that's called up by a page with an ASP.Net
I have an SSRS report pulling data in from a column of type DECIMAL(9,3).
In a VS05 SSRS report I have a field coming back from the database
I have a SSRS report which runs from a stored procedure. I've got 2
I have an application where I am rendering a SSRS report via the SOAP
I have a problem with SSRS Report Manager web application(but again I see this
I have an SSRS report where I need to collapse data into a summary

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.