Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 1.57 KB

setselectmethod-method-sqlserverdatasource.md

File metadata and controls

38 lines (28 loc) · 1.57 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic apilocation apiname apitype
setSelectMethod Method (SQLServerDataSource)
setSelectMethod Method (SQLServerDataSource)
David-Engel
davidengel
01/19/2017
sql
connectivity
reference
sqljdbc.jar
SQLServerDataSource.setSelectMethod
Assembly

setSelectMethod Method (SQLServerDataSource)

[!INCLUDEDriver_JDBC_Download]

Sets the default cursor type that is used for all result sets that are created by using this SQLServerDataSource object.

Syntax

  
public void setSelectMethod(java.lang.String selectMethod)  

Parameters

selectMethod

A String value that contains the default cursor type.

Remarks

The selectMethod is the default cursor type that is used for a result set. This property is useful when you are dealing with large result sets and do not want to store the whole result set in memory on the client side. By setting the property to "cursor," you can create a server-side cursor that can fetch smaller chunks of data at a time. If the selectMethod property is not set, getSelectMethod returns the default value of "direct".

See Also

SQLServerDataSource Members
SQLServerDataSource Class