I am creating a database that has a table called tblOne
I added a the column 'ID' and i forgot to disallow Nulls.
I am trying to change that with the query
ALTER TABLE tblOne
ALTER COLUMN ID int NOT NULL;
I am seeing the following error:
Cannot insert the value NULL into column 'ID', table 'city.dbo.tblOne'; column does not allow nulls. UPDATE fails.
Ive used this query before. So I'm sure there is some small mistake I'm not seeing. The statement has been terminated.