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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T14:25:01+00:00 2026-06-18T14:25:01+00:00

I am working with a database with 5 tables, all of which contain different

  • 0

I am working with a database with 5 tables, all of which contain different sets of information about clients and their employees. If you drill down in any table for data relating to a particular client, many rows will return according to the number of their employees in the dataset.

If I were to manually run the reports I need, I would query each table, one at a time, for all results where a particular client number is specified. Then I would export each table to a .csv, and then copy those exports into the same excel workbook with 5 tabs (corresponding to the 5 tables in the SQL database). At the end I would have an individual workbook for each client.

A complicating factor is that not every client ID appears in each of the 5 tables. Preferably, I would not export empty datasets and clients with data in only three of the tables would have only three tabs in the final workbook.

Is there way of giving to SQL server a list of Client IDs, for which it should query the 5 tables, export the existing data, and (possibly / hopefully) combine in a workbook on separate tabs.

  • 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-18T14:25:02+00:00Added an answer on June 18, 2026 at 2:25 pm

    Your question is rather vague and broad, but here’s the key bits of information you’ll need to investigate to get things going:

    • Create five different datasets, each querying one table.
    • Create five tablixes, add a PageBreak before each tablix so in Excel they will land on different tabs.
    • Either set a NoRowsMessage or hide the tablix along these lines using an expression based on the RowNumber function
    • Create a parameter for selecting the client ID, and use that in your WHERE clause of the datasets.

    The tricky bit would be how to generate multiple Excel files. SSRS does one export at a time, so your basic options:

    1. Put multiple clients in one XLS (i.e. don’t use a parameter, but include clientId as a column on the worksheets)
    2. Have the user select one client at a time, and export one XLS at a time.
    3. Automate generating the reports.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a database with 12 different tables which has been working
I am working on a MySQL database that is huge (about 120 tables). I
I am currently working on a solution in C# to copy database tables across
I'm working on a SQL Server 2008 database. This database has two tables. Book
I am working on PHP and database MySQL. I have two tables in SQL
Im currently working on a site which will contain a products catalog. I am
I started by asking this question I wish to Select all rows which contain
I'm working with a legacy SQL Server database which has a core table with
I'm currently working on a SQL Server relational database which will be accessed through
I have two database tables: 'MyTable' which has a standard auto-incrementing primary key integer

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.