CurrentResultSet Property (SQL-DMO)

The CurrentResultSet property controls access to the result sets of a QueryResults object.

Applies To

QueryResults Object

Syntax

object.CurrentResultSet [= value]

Part Description
object Expression that evaluates to an object in the Applies To list
value Long integer

Remarks

A QueryResults object may contain multiple result sets of data. For example, each result of an individual command in a Transact-SQL batch is returned to the client in its own set. Use the CurrentResultSet property to select the result set desired.

The ResultSets property reports the number of result sets in the QueryResults object.

Data Type

Long

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetCurrentResultSet(LPLONG pRetVal);

HRESULT SetCurrentResultSet(LONG NewValue);

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.