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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T15:31:07+00:00 2026-06-12T15:31:07+00:00

I need to create a dynamic report using Excel 2010 and SQL Server. Going

  • 0

I need to create a dynamic report using Excel 2010 and SQL Server. Going off of previous ones created by others I figured out how to create the data connection and use the stored procedure with a specific parameter in the connection properties definition tab. The other reports use a ? in the command definition and use a cell in the workbook to define the parameter.

How do I do that too?

Specific steps to creating the connection/report/parameter selection or any help much appreciated.

  • 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-06-12T15:31:08+00:00Added an answer on June 12, 2026 at 3:31 pm

    I got it to work using the steps provided at the following linked blog post.

    http://codebyjoshua.blogspot.com/2012/01/get-data-from-sql-server-stored.html

    Steps copied here in case link breaks in the future.

    Excel 2007 Instructions:

    1. Select the Data tab on Excel’s Ribbon, then within the Get Exernal Data group choose the “From other Sources” drop-down. Then Choose “From Microsoft Query”

    2. Within “Choose Data Source” pop-up box, select your SQL Server, then hit OK.

    3. Close the “Add Tables” popup if necessary.

    4. Click on the “SQL” button, or choose View > SQL to open the SQL pop-up editor.

    5. Enter the following syntax: {CALL myDatabaseName.dbo.myStoredProc (?, ?, ?)}

      For example: {CALL northwind.dbo.spGetMaxCost (?, ?, ?)}

      Be sure to include the squiggly braces around the call statement. Each Question Mark (?) indicates a parameter. If your stored procedure calls for more or less parameters, add or subtract question marks as needed.

    6. Hit the OK button. A question box should pop-up saying “SQL Query can’t be represented graphically, continue anyway?”, just hit the OK button.

    7. You will now be asked for sample parameters for each question mark you included above. Enter valid parameter values for the data you are querying.

    8. Once you have entered the last parameter, you should get some results back in Microsoft Query. If they look good, close Microsoft Query.

    9. You should now be looking at an “Import Data” pop-up. Click the Properties button, which will bring up the “Connection Properties” pop-up.

    10. Select the Definition tab, then select the Parameters button. You should now see a “Parameters” pop-up, where you can connect the parameter to a specific cell.

    11. Select Get the value from the following cell, and then connect to an appropriate cell in Excel that will hold your parameter, by clicking the little box with the arrow.

    12. If you want the data to refresh every time you change the cell containing the parameter, check the box stating “Refresh automatically when cell value changes”

    13. Continue as above for the other parameters. When finished, click OK, to return to the Connection Properties pop-up. Click OK to return to the Import Data pop-up, and click OK again.

    14. You should now have some data straight from your stored procedure.

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

Sidebar

Related Questions

I have a dynamic SQL statement I've created in a stored procedure. I need
i want to write head tag. i need create dynamic <head id=htmlHead runat=server> </head>
We need to create dynamic WHERE Clauses depending on user input. Using the old
i need to create a dynamic SQL statement that selects fields based on an
I am working with Excel 2010. I need to create a macro, that after
I'm trying to create a dynamic report in Excel. I have lots of sales
I need to create dynamic menu using and submenu using dynamically using c# code
I need to create a dynamic html table using PHP after parsing a JSON
I need to create a dynamic Excel formula through a Perl script. I store
I need to create dynamic INNER JOIN (I believe I need to anyway). I

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.