what i need to create is NULL default 0
So it wouldn't work if I alter the table
Code:
CREATE TABLE testing (Fld1 Int NOT NULL DEFAULT 0, Fld2 Int)
ALTER TABLE testing
ALTER COLUMN Fld1 Int NULL DEFAULT 0
the error code was :
Msg 156, Level 15, State 1, Line 2
Incorrect syntax near the keyword 'DEFAULT'.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.