performance - Access SQL-Server slow when opening multiple queries -
i upsizing access 2010 database ms sql-server , have strange problem occurs if open more 1 query. discovered problem because had form 3 sub forms opened slowly. removed 1 sub form after or opened queries testing. following description end of testing.
to describe problem lets concentrate on 3 queries call qa, qb , qc. each query based on each 1 table on sql-server few records. tables linked tables connected sql server connection string (later found out connection string wrong , problem. keep here question , answer still makes sense.):
odbc;driver=sql server native client 11.0;server=server01;trusted_connection=yes;database=aatest001;
currently access , sql-server both run on single high performance pc.
if open qa or qb or qc each query opens instantly. if open qa , qb , qc whole procedure becomes slow. first query starts fast, next (most of time) still fast. third query needs 10 seconds or more open.
it not matter if open them in order a, b, c or c, b, or other order. last query opens slow.
it not matter if wait 10 seconds or more between opening queries. if 2 queries open third slow. if waited few minutes between opening 2nd , 3rd query 3rd query open slow.
if open 2 queries , close 1 of them , open again query works fast.
i appreciate answer possible tips how can further analyze problem. tried sql server profiler (which know little) nothing obvious.
i found answer still think crazy.
i rechecked settings , found connection string in linked tables did not use “sql server native client 11.0” thought used “driver=sql server”.
after changed tables “sql server native client 11.0” there no performance problem anymore. tell standard “driver=sql server”? shouldn’t work without problems?
i add 1 more important information:
when linked tables access sql used dsn file. though access use file connection. partly true because when changed dsn file (i enabled logging) later did not change linked tables.
it seems when access links tables reads connection string in dsn file , writes connection string connect property of each table. , after done access ignores dsn file. dsn file can deleted , access won’t miss it.
i hope other users similar problems.
Comments
Post a Comment