Results 1 to 5 of 5
  1. #1
    EddieN1 is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    May 2011
    Posts
    313

    Query Keeps Redisplaying Results

    I have a simple Select query that contains some Function Calls to get data from SQL Server. The query should return about 30,000 rows. When I open it is datasheet view, it displays about 20-30 rows then starts over at the beginning and re-displays the rows again. It's not always the exact same number of rows to display. I have set the output type to Snapshot so it wouldn't try to retrieve new data but that doesn't help. Also, I am using Remote Desktop to connect to the workstation where this is happening. Any ideas I could try? Thanks.

  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,521
    I'm not sure it's a direct answer to your question, but my first thought is moving the query to SQL Server (presuming all the data is there). If this query is pulling data and within it are function calls that pull other data, I can't imagine it performing very well. There are several tools available in SQL Server that may perform better (stored procedure, table-valued function, CTE's, etc).
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    EddieN1 is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    May 2011
    Posts
    313
    Quote Originally Posted by pbaldy View Post
    I'm not sure it's a direct answer to your question, but my first thought is moving the query to SQL Server (presuming all the data is there). If this query is pulling data and within it are function calls that pull other data, I can't imagine it performing very well. There are several tools available in SQL Server that may perform better (stored procedure, table-valued function, CTE's, etc).
    Paul, this is just a one-time type of query used to convert data from one system to another... not for frequent, production usage...

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Sorry then, I'm not sure why it would keep rerunning itself. Access will always show you the first x rows but it doesn't calculate the rest right away. How about turning this into an append or make table query so it dumps the results out to where you can review them without the calculation issue?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,044
    More performant option: create a SSIS package on the SQL server for data conversion. There you can do any calculations you want and pump the converted data from 1 system to the other. SSIS is made for that.

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

Similar Threads

  1. Replies: 6
    Last Post: 08-21-2019, 07:17 AM
  2. Replies: 2
    Last Post: 04-15-2017, 11:09 AM
  3. Replies: 5
    Last Post: 05-21-2013, 02:21 PM
  4. Replies: 3
    Last Post: 05-02-2013, 10:36 AM
  5. Replies: 6
    Last Post: 05-14-2012, 07:24 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