Access Continuous Form with Linked Table - How to Avoid Hitting Database Server for Every Row in Form?

后端 未结 4 529
旧巷少年郎
旧巷少年郎 2021-01-15 02:24

I\'m migrating the data from an Access database to SQL Server via the SQL Server Migration Assistant (SSMA). The Access application will continue to be used with the local

4条回答
  •  长情又很酷
    2021-01-15 03:17

    I've come across the same problem again but this time with a different cause. I'm including it here for completeness, to help anyone in a similar situation:

    This time the underlying query was hanging and SQL Server Profiler showed the same behaviour as before, with Access making separate calls to the SQL Server database to bring back one record at a time, for every record in the query.

    The cause turned out to be the ORDER BY clause in the query. I guess Access had to pull back all records in the linked table from SQL Server before being able to order them. Makes sense when I think of it. Although I don't know why Access doesn't just pull all records through at once, instead of getting the records one at a time.

提交回复
热议问题