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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:35:34+00:00 2026-05-26T12:35:34+00:00

Provided I have the data in following format in the DB: +——–+——–+——-+ | Server

  • 0

Provided I have the data in following format in the DB:

+--------+--------+-------+
| Server | Client | Usage |
+--------+--------+-------+     
| London | Bob    | 10%   |
| London | Alice  | 20%   |
| Tokyo  | Charlie| 30%   |
| Tokyo  | Zeke   | 40%   |
+--------+--------+-------+     

I would like to have a spreadsheet containing data for each Server but I don’t know in advance which servers will be present and in what numbers. Via the Data > Connection I have created the CommonConnection would get all the data.

Question: Is there a way to display information for each server on a separate spreadsheet, using this single connection? Something like SELECT * FROM %CommonConnection% WHERE Server='London' (the %% syntax is speculative).

I’m writing a VBA script that will read servers, create spreadsheets for each and set up filters. Now it seems I’ll have to have a connection for a list of servers, and then create a dedicated connection for each of servers. These connection will have to be deleted on reload since I don’t know exact number of servers.

  • 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-26T12:35:35+00:00Added an answer on May 26, 2026 at 12:35 pm

    Ok, I havent found a native way of doing it, so everything is done via macro. This solution has multiple drawbacks one being you must have special extension for a macro-enabled workbook .xlsm.

    Set cnt = New ADODB.connection
    Set rst = New ADODB.Recordset
    
    cnt.Open "Provider=SQLOLEDB.1;Integrated Security= ...."
    rst.Open "SELECT ...", cnt
    
    While Not rst.EOF
        server = rst.Fields(0).Value
        ' get other values as well
        Worksheets(server).Range("whatever").Value = Array(server, value1, value2, etc)
    Wend
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

On a Java portal you can have portlets that include data provided by other
I have a gridview, the contents of which are provided by accessdatasource the data
I have the following situation: assume I have to display the data in the
I have the following code mycon=new SqlConnection(); mycon.ConnectionString='Provider =Microsoft.ACE.OLEDB.12.0';Data Source='G:\\Abbriviations\\Abbriviations\\App_Data\\abbreviations.accdb'; myds=new DataSet(); mytable =
I have the following code in C# Visual Studio 2010. string connectionString = Provider=Microsoft.Jet.OLEDB.4.0;Data
I have a data set (currently in Access 2007 format) which has 2 tables,
Let's say I have the following data model, for keeping track of the stats
BackGround: I have an advanced data grid. The data provider for this ADG is
I have an ADO.NET Managed Data Provider that is registered in machine.config in DbProviderFactory
I have a kernel module that provides data to a userland process through read().

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.