I have an application with an interface in Access 2007 (Access 2000 file) with a backend on SQL Server 2008. The application has been running for two years, and I noticed that on some PCs queries run forever, while on others it works pretty fast. Each PC has its own Access file, so they do not share the file.
Simple queries with a single table are time consuming. The largest table has 578,000 records.
Sometimes it takes 10 seconds to load a simple table in just 6 records. We are in a gigabit network.
I deleted the related tables in Access and added them again. This greatly improved the request time.
SQL Server 2008: SQL Server 10.0 v.2007.100.2531.00 SQL Server v. 2000.85.1132.00
ODBC, , - ODBC SQL Server Microsoft SQL Server 03.85.1132
, , , ?
ODBC .
SET EXPLAIN ON..., , .
, , . , , SQL'08 , '05, .
This may be caused by users joining a local table with a table on SQL Server.
Connecting a local table to a SQL Server table causes Access to retrieve the entire SQL Server table and connect to the local computer.
We had similar problems in the past.
Try updating the statistics on the SQl server.
Source: https://habr.com/ru/post/1770309/More articles:Getopt :: Long Pressing multiple values ββin a hash option - perlΠΠ½ΠΎΠ³ΠΎΠΌΠ΅ΡΠ½ΡΠΉ ΠΌΠ°ΡΡΠΈΠ² PHP-ΡΠΎΡΡΠΈΡΠΎΠ²ΠΊΠΈ Ρ ΠΏΠ΅ΡΠ²ΠΈΡΠ½ΡΠΌΠΈ ΠΈ Π²ΡΠΎΡΠΈΡΠ½ΡΠΌΠΈ ΠΊΠ»ΡΡΠ°ΠΌΠΈ - sortingSubquery returned more than 1 value. This does not resolve the error in AFTER INSERT, UPDATE trigger - sql-serverva_list extension portable - cDefining additional conditional compilation characters via devenv to solve C # - c #MS SQL - Uses a geometry data type to find distance significantly faster? - sql-serverPHP call forward frequency is inevitable? - pass-by-referenceΠΠ°ΠΊ Π½Π°ΡΡΡΠΎΠΈΡΡ ΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°ΡΠ΅Π»ΡΡΠΊΡΡ ΡΠ΅ΠΌΡ Π΄Π»Ρ ΠΏΡΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΡ .NET? - c#ΠΠ°ΠΊ ΠΏΡΠΎΡΠ»ΡΡΠΈΠ²Π°ΡΡ COM-ΡΠΎΠ±ΡΡΠΈΡ ΠΈΠ· ΠΏΡΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΠΉ Office, ΠΊΠΎΡΠΎΡΡΠ΅ Π·Π°ΠΏΡΡΠΊΠ°Π»ΠΈΡΡ Π½Π΅Π·Π°Π²ΠΈΡΠΈΠΌΠΎ? - c++Should C ++ keep variables unchanged when input fails? - c ++All Articles