Skip to content

Commit a69ad5f

Browse files
authored
Merge pull request #10237 from way0utwest/patch-60
Update primary key column limit from 16 to 32
2 parents 193e8ce + fd54259 commit a69ad5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/relational-databases/tables/primary-and-foreign-key-constraints.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ monikerRange: "=azuresqldb-current || >=sql-server-2016 || >=sql-server-linux-20
3434
:::image type="content" source="media/primary-and-foreign-key-constraints/composite-primary-key.gif" alt-text="Diagram of rows in a table for a composite PRIMARY KEY constraint.":::
3535

3636
- A table can contain only one primary key constraint.
37-
- A primary key can't exceed 16 columns and a total key length of 900 bytes.
37+
- A primary key can't exceed 32 columns and a total key length of 900 bytes.
3838
- The index generated by a primary key constraint can't cause the number of indexes on the table to exceed 999 nonclustered indexes and 1 clustered index.
3939
- If clustered or nonclustered isn't specified for a primary key constraint, clustered is used if there's no clustered index on the table.
4040
- All columns defined within a primary key constraint must be defined as not null. If nullability isn't specified, all columns participating in a primary key constraint have their nullability set to not null.

0 commit comments

Comments
 (0)