W
WSF
Access97
I am trying to create a table in a local MDB by extracting a range of
records from an BE SQL table with 15 million records.
I have linked this table with: (watch for this message wrap)
DoCmd.TransferDatabase acLink, "ODBC", _
"ODBC;DRIVER=SQL
Server;SERVER=X555;UID=Readonly;PWD=onlyread;APP=Microsoft® Access;
WSID=X123;DATABASE=StockTracking;Network=DBMSSOCN;TABLE=dbo." & SrcTable, _
acTable, "dbo." & SrcTable, DestTable, False, False
[SrcTable] and [DestTable] are set as variables as I use this function
for other data.
I extract data from the SQL source table into the local MDB using:
DoCmd.RunSQL "SELECT DestTable.* INTO tblStockData FROM DestTable WHERE
(((DestTable.InDATE)>=#07/01/2005#));"
This works okay but seems very slow.
It extracts approx 120,000 records of 12 fields, being the latest group
of records in the source table for the given date range.
This takes several minutes and causes issues with other contemporaneous
users of the database - users with their own FE connecting to the shared
BE (of which the sql table is a part) . They suffer a considerable
slowdown in their read/write etc
I hope I have made it clear.
Is there a better (quicker and less inconvenient to other users) way of
doing this?
TIA
WSF
I am trying to create a table in a local MDB by extracting a range of
records from an BE SQL table with 15 million records.
I have linked this table with: (watch for this message wrap)
DoCmd.TransferDatabase acLink, "ODBC", _
"ODBC;DRIVER=SQL
Server;SERVER=X555;UID=Readonly;PWD=onlyread;APP=Microsoft® Access;
WSID=X123;DATABASE=StockTracking;Network=DBMSSOCN;TABLE=dbo." & SrcTable, _
acTable, "dbo." & SrcTable, DestTable, False, False
[SrcTable] and [DestTable] are set as variables as I use this function
for other data.
I extract data from the SQL source table into the local MDB using:
DoCmd.RunSQL "SELECT DestTable.* INTO tblStockData FROM DestTable WHERE
(((DestTable.InDATE)>=#07/01/2005#));"
This works okay but seems very slow.
It extracts approx 120,000 records of 12 fields, being the latest group
of records in the source table for the given date range.
This takes several minutes and causes issues with other contemporaneous
users of the database - users with their own FE connecting to the shared
BE (of which the sql table is a part) . They suffer a considerable
slowdown in their read/write etc
I hope I have made it clear.
Is there a better (quicker and less inconvenient to other users) way of
doing this?
TIA
WSF