Re: JDBC ResultSet and cursors
- From: Joe Weinstein <joeNOSPAM@xxxxxxx>
- Date: Tue, 23 Jan 2007 08:58:38 -0800
govus wrote:
Hi everyone-
I'm using the Microsoft JDBC driver for SQL Server 2000 and I'm trying
to avoid using server cursors.
Is there a way to guarantee that every query will not create a
server-side ResultSet with a cursor? In other words, I want every
ResultSet to be loaded into the client's (the web server's) memory.
Does setting the "selectMethod" connection property guarantee this?
Does SQL Server automatically decide which method is best and if so,
what is the default choice?
I would appreciate any insight. Thanks in advance!
Hi. If you don't set selectMethod, and if you always fully
process your result set before re-executing the statement
it came from, or running another query via another statement
(or even some DatabaseMetaData calls) then you will avoid
serverside cursors.
.
- Follow-Ups:
- Re: JDBC ResultSet and cursors
- From: Joe Weinstein
- Re: JDBC ResultSet and cursors
- Prev by Date: Re: Connection Refused
- Next by Date: Re: JDBC ResultSet and cursors
- Previous by thread: Re: Connection Refused
- Next by thread: Re: JDBC ResultSet and cursors
- Index(es):
Relevant Pages
|
Loading