There is only one int type ID column in the SAMPLE table, the default is null.
In Oracle, when I do this:
insert into SAMPLE (ID) values ('');
a new record is added with an empty value. But in SQL Server 2008, when I run the same insert , the new record is set to 0.
Is there a way to force SQL Server 2008 to use an empty string for NULL instead of 0 (for a numeric column type) by default?
sql insert sql-server-2008 numeric
user1793297
source share