On 27 Mar, 14:40, Paul Clement
<UseAdddressAtEndofMess...@swspectrum.com> wrote:
> ¤ Hi
> ¤
[quoted text clipped - 10 lines]
> ~~~~
> Microsoft MVP (Visual Basic)
Right - but I'm only selecting 5 rows - shouldn't server-side cursor
be only unnoticeably slower?
J
Paul Clement - 30 Mar 2007 14:49 GMT
¤ > ¤ Hi
¤ > ¤
¤ > ¤ I'm selecting 5 rows from a view. When I fetch the results with
¤ > ¤ CursorLocation set to vbUseClient i get the response in one second.
¤ > ¤ When I use vbUseServer I wait about 1 minute. Can anyone explain this
¤ > ¤ behaviour to me?
¤ >
¤ > Unless you're using a server-side forward-only read-only cursor there are typically multiple round
¤ > trips to the database to fetch each row of data when using a server-side cursor. Client-side cursors
¤ > only require a single call.
¤ >
¤ > Paul
¤ > ~~~~
¤ > Microsoft MVP (Visual Basic)
¤
¤ Right - but I'm only selecting 5 rows - shouldn't server-side cursor
¤ be only unnoticeably slower?
I wouldn't expect it to take a full minute for five rows, no. You didn't mention what type of
database you are working with but this could be an issue with the driver or provider for your
database.
Paul
~~~~
Microsoft MVP (Visual Basic)