Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. LARGE database query

LARGE database query

Scheduled Pinned Locked Moved Database
databasesql-serversysadminsaleshelp
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kshincsk
    wrote on last edited by
    #1

    Hello, I have two data tales in Access. One contais 2 million recors and the other contains 116000 records. The Customer name, street address, city and zip code fields need to be matched against each other across both tables in order to fin mismatches and exact matches. Since one of the tales is very large, I am having a problem with the database program hanging every time I run the query. I tried doing this in SQL server 2005 as well, with no success. Can anyone suggest a method for accomplishing this? Regards.

    J B M 3 Replies Last reply
    0
    • K kshincsk

      Hello, I have two data tales in Access. One contais 2 million recors and the other contains 116000 records. The Customer name, street address, city and zip code fields need to be matched against each other across both tables in order to fin mismatches and exact matches. Since one of the tales is very large, I am having a problem with the database program hanging every time I run the query. I tried doing this in SQL server 2005 as well, with no success. Can anyone suggest a method for accomplishing this? Regards.

      J Offline
      J Offline
      Jerry Hammond
      wrote on last edited by
      #2

      Please post your query so that we might be able to understand why it refuses to dance.

      "My interest is in the future because I'm going to spend the rest of my life there." - Charles F. Kettering

      1 Reply Last reply
      0
      • K kshincsk

        Hello, I have two data tales in Access. One contais 2 million recors and the other contains 116000 records. The Customer name, street address, city and zip code fields need to be matched against each other across both tables in order to fin mismatches and exact matches. Since one of the tales is very large, I am having a problem with the database program hanging every time I run the query. I tried doing this in SQL server 2005 as well, with no success. Can anyone suggest a method for accomplishing this? Regards.

        B Offline
        B Offline
        Baran M
        wrote on last edited by
        #3

        You can create a non-clustered index for every condition and If you optimize your query that also will help you. Please post your query.

        Education is not a way to escape poverty — it is a way of fighting it.

        1 Reply Last reply
        0
        • K kshincsk

          Hello, I have two data tales in Access. One contais 2 million recors and the other contains 116000 records. The Customer name, street address, city and zip code fields need to be matched against each other across both tables in order to fin mismatches and exact matches. Since one of the tales is very large, I am having a problem with the database program hanging every time I run the query. I tried doing this in SQL server 2005 as well, with no success. Can anyone suggest a method for accomplishing this? Regards.

          M Offline
          M Offline
          Mycroft Holmes
          wrote on last edited by
          #4

          2 million records is not large in SQL server (although it may be in Access) so it has got to be your query. As suggested by others add some indexes and try optimising your query.

          Never underestimate the power of human stupidity RAH

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups