Das Notes Forum
Domino 9 und frühere Versionen => Entwicklung => Thema gestartet von: Glombi am 14.04.04 - 14:19:15
-
Ich habe folgendes Script:
Dim con As New ODBCConnection
Dim qry As New ODBCQuery
Dim res As New ODBCResultSet
'Verbindung zur Datenquelle aufbauen
Call con.ConnectTo( "Datenquelle" )
Set qry.Connection = con
Set res.Query = qry
qry.SQL = "SELECT * FROM " & "Tabelle"
res.maxRows = 2500
res.Execute
retcode% = res.FirstRow
i% = 1
Do While retcode%
i% = i% + 1
retcode% = res.NextRow
Loop
Er liest mir aber nur 771 Sätze ein, obwohl in der Access-DB 2444 sind.
Gibt es einen Workaround oder eine Einstellung.
Das res.maxRows scheint Notes nicht zu interessieren. In der Datenquelle für ODBC habe ich bereits an der Puffergröße gedreht, das nutzt aber auch nichts.
Andreas
-
Problem gelöst:
Man muss noch
res.CacheLimit = DB_NONE
setzen, damit nichts gecached wird.
Aus der Hilfe:
To get: limit& = odbcResultSet.CacheLimit
To set: odbcResultSet.CacheLimit = limit&
Usage
The limit is DB_ALL (full set), DB_NONE (minimum set), or the number of rows to store. DB_NONE means that only a very small window, including the current row, is kept in memory.