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
Enables or disables a compiled plan stub to be stored in cache when a batch is compiled for the first time. The default is OFF. Once the database scoped configuration OPTIMIZE_FOR_AD_HOC_WORKLOADS is enabled for a database, a compiled plan stub will be stored in cache when a batch is compiled for the first time. Plan stubs have a smaller memory footprint compared to the size of the full compiled plan. If a batch is compiled or executed again, the compiled plan stub will be removed and replaced with a full compiled plan.
152
+
144
153
## <aname="Permissions"></a> Permissions
145
154
Requires ALTER ANY DATABASE SCOPE CONFIGURATION
146
155
on the database. This permission can be granted by a user with CONTROL permission on a database.
@@ -272,6 +281,16 @@ This example disables the identity cache.
272
281
ALTERDATABASE SCOPED CONFIGURATION SET IDENTITY_CACHE=OFF ;
0 commit comments