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

sysname does not allow null by default

May 14 2012 12:00AM by Chintak Chhapia   

sysname is a special datatype and by default it does not allow NULL, you need to explicitly add NULL in table definition to allow null. sysname is defined as

nvarchar(128) not null

Below code will give error

declare @t1 table ( c1 int, c2 sysname)
insert into @t1 
select 1, NULL
Read More..   [39 clicks]

Published under: SQL Server Tips ·  ·  ·  · 


Chintak Chhapia
40 · 5% · 1457
13
 
1
 
12
 
0
Incorrect
 
0
Interesting
 
0
Forgotten



Submit

1  Comments  

  • Perfectly logical, but had never taken the time out to try it. Thank-you very much, Chintak!

    commented on May 14 2012 2:25AM
    Nakul Vachhrajani
    4 · 33% · 10564

Your Comment


Sign Up or Login to post a comment.

"sysname does not allow null by default" rated 5 out of 5 by 13 readers
sysname does not allow null by default , 5.0 out of 5 based on 13 ratings
    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]