DefaultCursor Property
后续版本的 Microsoft SQL Server 将删除该功能。 请避免在新的开发工作中使用该功能,并着手修改当前还在使用该功能的应用程序。
The DefaultCursor property controls the visibility of cursors created in Transact-SQL batches.
语法
object.DefaultCursor [=value]
Parts
object
An expression that evaluates to an object in the Applies To listvalue
TRUE or FALSE
Data Type
Boolean
Modifiable
Read/write
Prototype (C/C++)
HRESULT GetDefaultCursor(LPBOOL pRetVal);
HRESULT SetDefaultCursor(BOOL NewValue);
注释
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).