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

后端 未结 4 489
旧巷少年郎
旧巷少年郎 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:22

    Turned out the problem was two aggregate fields. One field's Control Source was =Count(ID) and the other field's Control Source was =Sum(Total_Qty).

    Clearing the control sources of those two fields allowed the form to open quickly. SQL Server Profiler shows it calling sp_execute, as Gord Thompson described, to retrieve seven batches of 10 rows at a time. Much quicker than making 2000 calls to retrieve one row at a time.

提交回复
热议问题