Compartir a través de


DefaultCursor Property

Esta característica se quitará en una versión futura de Microsoft SQL Server. Evite utilizar esta característica en nuevos trabajos de desarrollo y tenga previsto modificar las aplicaciones que actualmente la utilizan.

The DefaultCursor property controls the visibility of cursors created in Transact-SQL batches.

Sintaxis

object.DefaultCursor [=value]

Parts

  • object
    An expression that evaluates to an object in the Applies To list

  • value
    TRUE or FALSE

Data Type

Boolean

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetDefaultCursor(LPBOOL pRetVal);
HRESULT SetDefaultCursor(BOOL NewValue);

Notas

Microsoft SQL Server cursor scope can be local, meaning visible only within the scope of a batch, or global, meaning visible to any process within the scope of the session.

If TRUE, cursors declared in a batch are created with local scope.

If FALSE, cursors declared in a batch are created with global scope.

For more information, see DECLARE CURSOR (Transact-SQL).

Applies To: