Getting Started with Adobe After Effects - Part 6: Motion Blur
A collection of quick technology learning tips from what people around you learn every day

DEFAULT or NULL are not allowed as explicit identity values.

Jun 15 2011 1:44AM by Fazal Vahora   

When we try to insert some explicit data into an IDENTITY column the following error occurred.

Create Table test1
(
Id Int Identity(1,1),
Id2 int
)
Go

Set identity_insert test1 on
Insert test1 (Id,Id2) values(Null,1)
Set identity_insert test1 off

Error is: Msg 339, Level 16, State 1, Line 3 DEFAULT or NULL are not allowed as explicit identity values.

Read More..   [46 clicks]

Published under: SQL Server Tips ·  ·  ·  · 


Fazal Vahora
21 · 9% · 2806
3
 
3
 
 
0
Incorrect
 
0
Interesting
 
0
Forgotten



Submit

1  Comments  

Your Comment


Sign Up or Login to post a comment.

" DEFAULT or NULL are not allowed as explicit identity values." rated 5 out of 5 by 3 readers
DEFAULT or NULL are not allowed as explicit identity values. , 5.0 out of 5 based on 3 ratings
    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]