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

  • Home
  • SEARCH
  • 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 630091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:49:05+00:00 2026-05-13T19:49:05+00:00

Scenario I have a database made up of 4 columns and 6 million rows.

  • 0

Scenario

I have a database made up of 4 columns and 6 million rows.
I want to be able to be able to use Excel to query this data in the same way in which I can query it using the Sql Server Management Studio.

I’ve had a google around and read a few articles but in all honesty I dont really know enough about the implementation to really know what to look for in a tutorial.

Question

Could someone please explain to me the way in which this works and how I might go about implementing what seems like a fairly simple idea?

EDIT:

So for example –
I have a few simple queries that I want to run on this data.
How do I go about setting these up?
Is the idea that all of the data is first loaded into the excel sheet (or at least linked to the excel sheet so that the user can select the data to view on the fly?) – I cannot physically load in 6 million rows as Excel cannot take that level of data…..

  • 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-13T19:49:05+00:00Added an answer on May 13, 2026 at 7:49 pm

    Definitely don’t pull all the data into Excel, that will bring it to its knees.

    Normally, when I need an Excel (VBA) workbook to retrieve some data from a database, I will just have Excel connect to the database with the appropriate connection string, pass the SQL query string to the database, and retrieve the returned records. Below is some sample VBA code that retrieves some information from an MS Access database.

    txtQueryString = "SELECT * " 
        & "FROM myDataTable " _
        & "WHERE fld1 = '" & myCriteria & "'"
    
    txtConnectString = "Provider=Microsoft.Jet.OLEDB.4.0;" _
    & "Data Source=" & dbPathString & ";" _
    & "Persist Security Info=False"
    
    Dim rst As ADODB.Recordset
    Set rst = New ADODB.Recordset
    rst.Open txtQueryString, txtConnectString, adOpenKeyset, adLockReadOnly, adCmdText
    
    myData1 = rst.Fields("fld1").Value 
    myData2 = rst.Fields("fld2").Value 
       .
       .
       .
        rst.Close
        Set rst = Nothing
    

    The connection string to SQL Server will be different. I use this website for all my connection string needs.

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

Sidebar

Related Questions

I have the following scenario: I have various user's data stored in my database.
I think my scenario is pretty common. I have a database and I want
i have a scenario, i want to monitor database(SQL Server) table, if record is
I have this tricky scenario and want so advice to you. My client have
So the scenario is this: I have a mySQL database on a local server
Our scenario: We have a main database that stores company-wide information. We have several
Consider the following scenario We have a simple database that involves two entities: user
I have a typical dev scenario: I have a SQL 2008 database that I
Database: DB2 v9.5 on AIX Scenario: I have 2 instances- db2inst1 and db2inst2. I
I was recently pondering the following scenario: suppose you have a huge database and

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.