I have a 100M row SQL Server table (SStb) joined against 2K local Access (Atb) table top update 3 fields in 100K rows of SStb. Atb is a lookup table. In Access, the query takes 1.5 days to run.
I'm charged with optimizing same. With DAO, the parsing takes about an hour, cycling through the SStb rows, one by one. An hour is also too long.
SStb has several user columns, there's no SQL Server scratch tables to populate the 2K lookup.
Could I somehow build a temporary SQL Server table using Access DAO/ADO to hold the 2K, 2 column lookup rows? More suscinctly, can I populate a SS temporary table using Access DAO/ADO? If so, how?
Alternatively, can I populate 2 columns or 2K rows of the 100Krows of SStb with my lookup values and create a pass through query self joining SStb 3 times on the lookup columns?
Hopefully, this is clear. :banghead: Thank you in advance for your thoughts.
I'm charged with optimizing same. With DAO, the parsing takes about an hour, cycling through the SStb rows, one by one. An hour is also too long.
SStb has several user columns, there's no SQL Server scratch tables to populate the 2K lookup.
Could I somehow build a temporary SQL Server table using Access DAO/ADO to hold the 2K, 2 column lookup rows? More suscinctly, can I populate a SS temporary table using Access DAO/ADO? If so, how?
Alternatively, can I populate 2 columns or 2K rows of the 100Krows of SStb with my lookup values and create a pass through query self joining SStb 3 times on the lookup columns?
Hopefully, this is clear. :banghead: Thank you in advance for your thoughts.