SQL SERVER – Primary Key Must Not Contain NULL – Primary Key are NOT NULL

While reviewing the search engine log for this blog I found lots of search regarding Nullable Primary Key. It is not possible. This post is especially to clear the Not Nullable Primary Key Property. The Allow Nulls property can’t be set on a column that is part of the primary key. All columns that are part of a table’s a primary key must contain aggregate unique values other than NULL.

Reference : Pinal Dave (https://darkslategrey-bat-805937.hostingersite.com) , BOL

SQL Constraint and Keys
Previous Post
SQLAuthority.com News – Best SQL Job Search – Best SQL Job List – Find SQL Jobs
Next Post
SQL SERVER – 2005 Change Database Compatible Level – Backward Compatibility – Part 2 – Management Studio

Related Posts

Leave a Reply