the database is about 30mb. The queries are quite simple - just "SELECT xx, xx FROM xx WHERE xx=yy".
I just converted my Access 2003 database, which was stored locally, to hosted SQL Server. An update which previously took about 10 seconds now takes about 2 minutes.
I tried to limit the number of rows which helped quite a lot. Then I also tried to change the format of a field from "nText" to "nVar" that also helped a lot. It seems like the amount of data transmitted is the single most important factor - even though I'm running on a 8mbit line.
Most of my data I just need in arrays - I usually don't update any tables. My thought was that it should be possible to send the query result from the SQL Server in some kind of "flat" text array format and not in a recordset format.
I'm using ADODB in VBA with code lines like:
-
-
Set rsData = New ADODB.Recordset
-
rsData.Open sSql, conGPAM, adOpenKeyset, adLockOptimistic
-
aData = rsSCD.GetRows(-1)
-
I have tried to change LockType and CursorType, but that doesn't really make a difference.
Any suggestions?
Thanks