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
Copy file name to clipboardExpand all lines: docs/relational-databases/stored-procedures/specify-parameters.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,6 +77,9 @@ GO
77
77
78
78
> [!NOTE]
79
79
> If the default value is a character string that contains embedded blanks or punctuation, or if it starts with a number (for example, 6xxx), it must be enclosed in single, straight quotation marks.
80
+
81
+
> [!NOTE]
82
+
> Default parameters are not supported in Azure SQL Data Warehouse or Parallel Data Warehouse.
80
83
81
84
If no value can be specified appropriately as a default for the parameter, specify NULL as the default. It is a good idea to have the procedure return a customized message if the procedure is executed without a value for the parameter.
<aname="result_set_caching"></a> RESULT_SET_CACHING { ON | OFF }
2927
-
Applies to Azure SQL Data Warehouse (preview)
2934
+
**Applies to** Azure SQL Data Warehouse (preview)
2928
2935
2929
2936
This command must be run while connected to the `master` database. Change to this database setting takes effect immediately. Storage costs are incurred by caching query result sets. After disabling result caching for a database, previously persisted result cache will immediately be deleted from Azure SQL Data Warehouse storage. A new column, is_result_set_caching_on, is introduced in `sys.databases` to show the result cache setting for a database.
2930
2937
@@ -2942,6 +2949,23 @@ Specifies that query result sets returned from this database will not be cached
2942
2949
command|Like|%DWResultCacheDb%|
2943
2950
|||
2944
2951
2952
+
2953
+
<aname="snapshot_option"></a> READ_COMMITTED_SNAPSHOT { ON | OFF }
2954
+
**Applies to** Azure SQL Data Warehouse (preview)
2955
+
2956
+
ON
2957
+
Enables the READ_COMMITTED_SNAPSHOT option at the database level.
2958
+
2959
+
OFF
2960
+
Turn off READ_COMMITTED_SNAPSHOT option at the database level.
2961
+
2962
+
Turning READ_COMMITTED_SNAPSHOT ON or OFF for a database will kill all open connections to this database. You may want to make this change during database maintenance window or wait until there is no active connection to the database except for the connection executing the ALTER DATABSE command. The database does not have to be in single-user mode. Changing READ_COMMITTED_SNAPSHOT setting at session level is not supported. To verify this setting for a database, check is_read_committed_snapshot_on column in sys.databases.
2963
+
2964
+
In a database with READ_COMMITTED_SNAPSHOT enabled, queries may experience slower performance due to the scan of versions if multiple data versions are present. Long open transactions can also cause increase in the size of the database if there are data changes by these transactions which blocks the cleanup of versions.
2965
+
2966
+
2967
+
2968
+
2945
2969
## Remarks
2946
2970
2947
2971
Cached result set is reused for a query if all of the following requirements are all met:
@@ -2954,12 +2978,9 @@ Once result set caching is turned ON for a database, results are cached for all
2954
2978
2955
2979
## Permissions
2956
2980
2957
-
Requires these permissions:
2981
+
To set RESULT_SET_CACHING option, a user needs server-level principal login (the one created by the provisioning process) or be a member of the `dbmanager` database role.
2958
2982
2959
-
- Server-level principal login (the one created by the provisioning process), or
2960
-
- Member of the `dbmanager` database role.
2961
-
2962
-
The owner of the database cannot alter the database unless the owner is a member of the dbmanager role.
2983
+
To set READ_COMMITTED_SNAPSHOT option, a user needs ALTER permission on the database.
2963
2984
2964
2985
## Examples
2965
2986
@@ -3024,6 +3045,12 @@ FROM sys.dm_pdw_request_steps
3024
3045
WHERE command like'%DWResultCacheDb%'and step_index =0;
3025
3046
```
3026
3047
3048
+
### Enable Read_Committed_Snapshot option for a database
0 commit comments