You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
STALE_CAPTURE_POLICY_THRESHOLD = number { DAYS | HOURS }
234
+
STALE_CAPTURE_POLICY_THRESHOLD = number { DAYS | HOURS }
233
235
| EXECUTION_COUNT = number
234
236
| TOTAL_COMPILE_CPU_TIME_MS = number
235
237
| TOTAL_EXECUTION_CPU_TIME_MS = number
@@ -247,11 +249,12 @@ SET
247
249
REMOTE_DATA_ARCHIVE =
248
250
{
249
251
ON ( SERVER = <server_name> ,
250
-
{CREDENTIAL = <db_scoped_credential_name>
251
-
| FEDERATED_SERVICE_ACCOUNT = ON | OFF
252
-
}
253
-
)
254
-
| OFF
252
+
{
253
+
CREDENTIAL = <db_scoped_credential_name>
254
+
| FEDERATED_SERVICE_ACCOUNT = ON | OFF
255
+
}
256
+
)
257
+
| OFF
255
258
}
256
259
}
257
260
@@ -267,8 +270,8 @@ SET
267
270
<snapshot_option> ::=
268
271
{
269
272
ALLOW_SNAPSHOT_ISOLATION { ON | OFF }
270
-
| READ_COMMITTED_SNAPSHOT {ON | OFF }
271
-
| MEMORY_OPTIMIZED_ELEVATE_TO_SNAPSHOT = {ON | OFF }
273
+
| READ_COMMITTED_SNAPSHOT {ON | OFF }
274
+
| MEMORY_OPTIMIZED_ELEVATE_TO_SNAPSHOT = {ON | OFF }
272
275
}
273
276
<sql_option> ::=
274
277
{
@@ -293,7 +296,9 @@ SET
293
296
| ROLLBACK IMMEDIATE
294
297
| NO_WAIT
295
298
}
296
-
<temporal_history_retention>::=TEMPORAL_HISTORY_RETENTION { ON | OFF }
299
+
300
+
<temporal_history_retention> ::=
301
+
TEMPORAL_HISTORY_RETENTION { ON | OFF }
297
302
```
298
303
299
304
## Arguments
@@ -331,9 +336,9 @@ The AUTO_CLOSE option is useful for desktop databases because it allows for data
331
336
>
332
337
> When AUTO_CLOSE is set to ON, some columns in the [sys.databases](../../relational-databases/system-catalog-views/sys-databases-transact-sql.md) catalog view and the [DATABASEPROPERTYEX](../../t-sql/functions/databasepropertyex-transact-sql.md) function will return NULL because the database is unavailable to retrieve the data. To resolve this issue, run a USE statement to open the database.
333
338
>
334
-
> Database mirroring requires AUTO_CLOSE OFF.
339
+
> Database mirroring requires AUTO_CLOSE set to OFF.
335
340
336
-
When the database is set to AUTOCLOSE = ON, an operation that initiates an automatic database shutdown clears the plan cache for the instance of [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)]. Clearing the plan cache causes a recompilation of all subsequent execution plans and can cause a sudden, temporary decrease in query performance. Starting with [!INCLUDE[ssVersion2005](../../includes/ssversion2005-md.md)] Service Pack 2, for each cleared cache store in the plan cache, the [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] error log contains the following informational message: `SQL Server has encountered %d occurrence(s) of cachestore flush for the '%s' cachestore (part of plan cache) due to some database maintenance or reconfigure operations`. This message is logged every five minutes as long as the cache is flushed within that time interval.
341
+
When the database is set to `AUTOCLOSE = ON`, an operation that initiates an automatic database shutdown clears the plan cache for the instance of [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)]. Clearing the plan cache causes a recompilation of all subsequent execution plans and can cause a sudden, temporary decrease in query performance. Starting with [!INCLUDE[ssVersion2005](../../includes/ssversion2005-md.md)] Service Pack 2, for each cleared cache store in the plan cache, the [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] error log contains the following informational message: `SQL Server has encountered %d occurrence(s) of cachestore flush for the '%s' cachestore (part of plan cache) due to some database maintenance or reconfigure operations`. This message is logged every five minutes as long as the cache is flushed within that time interval.
337
342
338
343
<aname="auto_create_statistics"></a> AUTO_CREATE_STATISTICS { **ON** | OFF }
0 commit comments