Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!
  1. Guest ji, please consider donating today!
      Become a Supporter    ::   Make a Contribution   
    Monthly Recurring Target: $300 :: Achieved: $95

SQL Server thread with Access and long queries

Discussion in 'Information Technology' started by wnfisba, Jul 28, 2006.

  1. wnfisba

    wnfisba
    Expand Collapse
    Guest

    We have a SELECT INTO query in Access that is Appending to an Access Table.
    We have made sure that all /Temp folders have been cleaned up. The SELECT
    INTO is going out to get SQL Server data via ODBC. The query in Access is
    taking between 7 and 10 minutes. When we rip the query out of Access and run
    it in Query Analyzer, it is taking 30 seconds. So we're pretty sure the query
    is efficient. In both cases, it is returning 7,000+ rows.

    Can anyone shed any light onto any thread issues that they have encountered
    between Access and SQL Server and how they went about resolving them???

    Any help would be GREATLY appreciated.
     
  2. Loading...


  3. John Vinson

    John Vinson
    Expand Collapse
    Guest

    On Wed, 10 May 2006 09:35:02 -0700, wnfisba
    <wnfisba@discussions.microsoft.com> wrote:

    >We have a SELECT INTO query in Access that is Appending to an Access Table.
    >We have made sure that all /Temp folders have been cleaned up. The SELECT
    >INTO is going out to get SQL Server data via ODBC. The query in Access is
    >taking between 7 and 10 minutes. When we rip the query out of Access and run
    >it in Query Analyzer, it is taking 30 seconds. So we're pretty sure the query
    >is efficient. In both cases, it is returning 7,000+ rows.
    >
    >Can anyone shed any light onto any thread issues that they have encountered
    >between Access and SQL Server and how they went about resolving them???
    >
    >Any help would be GREATLY appreciated.


    Are you appending into a local JET Access table, or a linked SQL
    table?

    If the local table, my guess is that you're running into the overhead
    of updating the indexes on the table. It may be necessary to drop the
    indexes, run the append, and then re-index the table. :-{(

    John W. Vinson[MVP]
     
  4. schasteen

    schasteen
    Expand Collapse
    Guest

    I have found it to be much quicker to run views and stored procedures on the
    server instead of a query in access. Your local machine probably does not
    have the horsepower of the server, and the traffic over the network slows it
    down also.

    "John Vinson" wrote:

    > On Wed, 10 May 2006 09:35:02 -0700, wnfisba
    > <wnfisba@discussions.microsoft.com> wrote:
    >
    > >We have a SELECT INTO query in Access that is Appending to an Access Table.
    > >We have made sure that all /Temp folders have been cleaned up. The SELECT
    > >INTO is going out to get SQL Server data via ODBC. The query in Access is
    > >taking between 7 and 10 minutes. When we rip the query out of Access and run
    > >it in Query Analyzer, it is taking 30 seconds. So we're pretty sure the query
    > >is efficient. In both cases, it is returning 7,000+ rows.
    > >
    > >Can anyone shed any light onto any thread issues that they have encountered
    > >between Access and SQL Server and how they went about resolving them???
    > >
    > >Any help would be GREATLY appreciated.

    >
    > Are you appending into a local JET Access table, or a linked SQL
    > table?
    >
    > If the local table, my guess is that you're running into the overhead
    > of updating the indexes on the table. It may be necessary to drop the
    > indexes, run the append, and then re-index the table. :-{(
    >
    > John W. Vinson[MVP]
    >
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page