Results 1 to 10 of 10
  1. #1
    tonydepo is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Mar 2012
    Posts
    28

    Large table

    Hi, I could use some help. I have several databases with one table in each database that holds over 3-4 million records. I still enjoy the ability of using access for my forms. queries etc, but having multiple databases due to one large table in each is causing a headache. I have to constantly relink that one table every time a new month goes by. Does anyone have suggestions on something that can hold a lot of records for one given table? I tried SQLDB, however when I tried to append the next month's table it is slow as heck.

    Also, I have a table called "maindata" which has over 3-4 million records which is the monthly records I need to query on. However, I have the same table name for each separate DB due to the 2 gig limit. Is there a way to link these databases by the same table name so I can run my frontend query to capture all of these months instead of performing separate queries in each database?



    Thanks

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    you may need to move up to SQL server to hold ALL your tables & data.
    no limit.

  3. #3
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,914
    I would have thought you could link to the other dbs and perform a union query?
    Not ideal, but......
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Can link to multiple db tables having same name, just assign each link a different name.

    Methods to consider in your process:

    1. modify query object manually or with VBA using DAO QueryDefs

    2. build a new query for each table

    3. VBA change RecordSource property of form/report to reference desired link table

    4. UNION query (which would have to be modified for each new table link) and reference that query and apply filter criteria (no idea how a UNION of multiple tables with millions of records would perform)

    5. have only one link and VBA to modify link connection string to change source database

    If you don't need to use data from multiple db sources at same time, I would lean toward #5.


    SQLServer Express is free but limited to 10GB.

    I never heard of SQLDB - is that actually a database product? Who markets it?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    tonydepo is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Mar 2012
    Posts
    28
    Quote Originally Posted by June7 View Post
    How would a UNION of multiple tables with millions of records perform?

    SQLServer Express is free but limited to 10GB.

    I never heard of SQLDB - is that actually a database product? Who markets it?
    Azure SQL Database – Managed Cloud Database Service | Microsoft Azure

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Okay, have heard of Azure, never dealt with. I modified my other post after you read it - might review again.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #7
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,914
    I would have thought you could link to the other dbs and perform a union query?
    Not ideal, but......
    Edit: not sure what goes on here, but sometimes I come back to a thread and it looks like I have forgotten to post the reply, hence dupe posts.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  8. #8
    tonydepo is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Mar 2012
    Posts
    28
    Thank you. Tried a Union query, but I received the 2GB limitation. I really believe I have to find another platform to host the back end piece with this amount of transactional data. Thanks for the help!!

  9. #9
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,914
    Quote Originally Posted by tonydepo View Post
    Thank you. Tried a Union query, but I received the 2GB limitation. I really believe I have to find another platform to host the back end piece with this amount of transactional data. Thanks for the help!!
    More than likely.
    Look at MariaDB and MySQL as options?

    Good luck with your project.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  10. #10
    Minty is offline VIP
    Windows 10 Office 365
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,003
    Azure SQL is something I am familiar with.

    Bulk updates from Access to Azure can be slow if lots of records are involved.
    What type of file is the source for the new data each month?

    There are better more efficient ways of importing bulk data than doing an update to a linked table.

    Out of interest do you have many indexes on your main table?
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

Please reply to this thread with any new information or opinions.

Similar Threads

  1. one single large table
    By fishhead in forum Programming
    Replies: 5
    Last Post: 10-21-2020, 05:47 AM
  2. Large table into smaller
    By Thompyt in forum Programming
    Replies: 15
    Last Post: 05-04-2019, 12:55 PM
  3. Replies: 4
    Last Post: 03-08-2018, 03:27 PM
  4. Large Table Update
    By drunkenneo in forum Programming
    Replies: 1
    Last Post: 01-21-2014, 12:37 AM
  5. Median and Mode for a large table
    By brandon in forum Access
    Replies: 0
    Last Post: 05-08-2008, 09:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums