AutoShrink Property
未來的 Microsoft SQL Server 版本將移除這項功能。請避免在新的開發工作中使用這項功能,並規劃修改目前使用這項功能的應用程式。
The AutoShrink property exposes Microsoft SQL Server sizing behavior for operating system files that maintain table and index data.
語法
object
.AutoShrink [=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 GetAutoShrink(LPBOOL pRetVal);
HRESULT SetAutoShrink(BOOL NewValue);
備註
If TRUE, operating system files maintaining table and index data are evaluated for downward resizing when the server periodically checks for unused space.
If FALSE, the operating system files storing the database are not evaluated during periodic checks for unused space.
The AutoShrink Property property is equivalent to the sp_dboption (Transact-SQL)autoshrink option in Transact-SQL.