Skip to content

Commit df9ecec

Browse files
Merge pull request #35533 from rwestMSFT/rw-1009-t-sql
[SCOPED] Fix order for T-SQL
2 parents 7ca1ec5 + d28eaa9 commit df9ecec

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

docs/relational-databases/diagnose-resolve-latch-contention.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ By padding rows to occupy a full page you require SQL to allocate more pages, ma
720720
A script similar to the following can be used to pad rows to occupy an entire page:
721721

722722
```sql
723-
ALTER TABLE mytable ADD Padding CHAR(5000) DEFAULT NOT NULL ('X');
723+
ALTER TABLE mytable ADD Padding CHAR(5000) NOT NULL DEFAULT ('X');
724724
```
725725

726726
> [!NOTE]

docs/t-sql/statements/alter-table-transact-sql.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2145,10 +2145,10 @@ ALTER TABLE Department
21452145
SET (SYSTEM_VERSIONING = OFF) ;
21462146
/* expand table schema for temporal table */
21472147
ALTER TABLE Department
2148-
ADD Col5 int DEFAULT NOT NULL 0 ;
2148+
ADD Col5 int NOT NULL DEFAULT 0 ;
21492149
/* Expand table schema for history table */
21502150
ALTER TABLE DepartmentHistory
2151-
ADD Col5 int DEFAULT NOT NULL 0 ;
2151+
ADD Col5 int NOT NULL DEFAULT 0 ;
21522152
/* Re-establish versioning again*/
21532153
ALTER TABLE Department
21542154
SET (SYSTEM_VERSIONING = ON (HISTORY_TABLE=dbo.DepartmentHistory,

0 commit comments

Comments
 (0)