Home > SQL Server > Max of Primary Key

Max of Primary Key

We create primary key column in the table to assign unique value for each record. Cluster index will also be created while creating primary key column.

we can have up to 16 columns as primary key column and the total size of the key columns should be less than or equal to 900 bytes.


Create a table with a column of varchar data type with size 901 and make that column as a primary key. A popup message will tell that you cannot have key column size more than 900.



Thanks for reading.

  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: