Results 1 to 7 of 7
  1. #1
    shabar is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2013
    Posts
    66

    Run query against different database tables

    Hi All

    I have two databases having different tables one separate database to run queries where all the necessary tables linked to that DB.

    When doing above are there specific things to be considered when execute queries to get good performances (I have created necessary indexes in tables)


    Appreciate your response



    Cheers

    Shabar

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    One potential problem is that if you are joining tables in different back ends in a query, Jet/Ace may not be able to pass the SQL back, and will have to pull all the data from both to the front end so it can process things.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    shabar is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2013
    Posts
    66
    Thax for your reply pbaldy,

    You mean to say If tables are in DB_1 and DB_2, if the queries running on DB_3, Needs to pull all the relevant data from Db_1 and DB_2 into DB_3 and then run it will run the query?

    The main reason why I created separate database is because of the size limitation (2GB). So incase if the query database exceeds limit of 2 GB due to pulling data before running the query that's gonna be a issue.....

    What could be the possible solutions...


    Cheers

    Shabar

  4. #4
    shabar is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2013
    Posts
    66
    Further

    I've got disk space error when import second csv file to a table in new database. But when check the DB size its ONLY 645,000 KB. Only one table is there having 390245 records. New csv file got 531198 records. But The earlier database I have a table with 1.6 Mio records with other tables as well. What could be the reason (Using Access 2007)
    Cheers
    Shabar

  5. #5
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    Generally when you have a query that joins two tables in a back end, Access can pass the SQL to the back end and it will process it and only return the result set. When the tables are in different back ends, it can't do that so likely each back end will pass the whole table to the front end so it can handle it. That takes time.

    A compact/repair may help your db size, but you might also consider going to a more robust back end. SQL Server has a free version, and there are others.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  6. #6
    shabar is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2013
    Posts
    66
    Thax a lot pbaldy. That make scenes

    Appreciate your comments

    Cheers

    Shabar

  7. #7
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    No problem.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Membership Database tables Help
    By elitehass in forum Access
    Replies: 2
    Last Post: 02-10-2013, 07:31 PM
  2. trying to Inner Join 3 database tables
    By gregu710 in forum Queries
    Replies: 2
    Last Post: 01-17-2012, 02:42 PM
  3. Lookup tables in web database
    By adacpt in forum Reports
    Replies: 2
    Last Post: 12-25-2011, 10:07 AM
  4. Replies: 3
    Last Post: 09-07-2011, 03:17 PM
  5. Please help me set up my tables for new database
    By 10 Gauge in forum Database Design
    Replies: 55
    Last Post: 03-04-2011, 11:25 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