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
{{ message }}
Repository navigation
Commit d42c8f4
Browse filesBrowse the repository at this point in the historyBrowse files
* Use GO where needed
* Remove extra commas, misplaced brackets etc.
* Use COMMIT TRAN instead of incorrect END TRAN
* Reorder a statement to use the OUTPUT clause in the correct way.
### <aname="bkmk_DbControl"></a> Database level control
89
89
You, the DBA, can control whether users can use delayed transaction durability on a database with the following statement. You must set the delayed durability setting with ALTER DATABASE.
90
90
91
-
```sql
91
+
```syntaxsql
92
92
ALTER DATABASE ... SET DELAYED_DURABILITY = { DISABLED | ALLOWED | FORCED }
93
93
```
94
94
@@ -104,7 +104,7 @@ ALTER DATABASE ... SET DELAYED_DURABILITY = { DISABLED | ALLOWED | FORCED }
@@ -117,15 +117,15 @@ DELAYED_DURABILITY = { OFF | ON }
117
117
**Example Code:**
118
118
119
119
```sql
120
-
CREATE PROCEDURE <procedureName> ...
120
+
CREATE PROCEDURE [<procedureName>] /* parameters go here */
121
121
WITH NATIVE_COMPILATION, SCHEMABINDING, EXECUTE AS OWNER
122
122
ASBEGIN ATOMIC WITH
123
123
(
124
124
DELAYED_DURABILITY =ON,
125
125
TRANSACTION ISOLATION LEVEL = SNAPSHOT,
126
126
LANGUAGE = N'English'
127
-
...
128
127
)
128
+
/* procedure body goes here */
129
129
END
130
130
```
131
131
@@ -139,9 +139,8 @@ END
139
139
### <aname="bkmk_T-SQLControl"></a> COMMIT level control -[!INCLUDE[tsql](../../includes/tsql-md.md)]
140
140
The COMMIT syntax is extended so you can force delayed transaction durability. If DELAYED_DURABILITY is DISABLED or FORCED at the database level (see above) this COMMIT option is ignored.
141
141
142
-
```sql
142
+
```syntaxsql
143
143
COMMIT [ { TRAN | TRANSACTION } ] [ transaction_name | @tran_name_variable ] ] [ WITH ( DELAYED_DURABILITY = { OFF | ON } ) ]
Copy file name to clipboardExpand all lines: docs/relational-databases/native-client-odbc-table-valued-parameters/sending-data-as-a-table-valued-parameter-using-data-at-execution-odbc.md
Copy file name to clipboardExpand all lines: docs/relational-databases/native-client-ole-db-how-to/filestream/send-data-to-a-filestream-column-using-irowsetfastupload-ole-db.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -584,8 +584,13 @@ MainCleanup:
584
584
```
585
585
586
586
```sql
587
-
sp_detach_db 'DBFsa'
588
-
IF EXISTS (SELECT name FROM master..sysdatabases WHERE name = 'DBFsa') DROP DATABASE [DBFsa] |
0 commit comments