I created a table in the DB with the following code
CREATE TABLE documentosDefesa
(
id_documentos_defesa int NOT NULL,
id_reclamatoria int NOT NULL,
funcao nvarchar(50) NULL
);
And now when I try to do the following insertion,:
INSERT INTO [RDO].[dbo].[documentosDefesa] (id_reclamatoria, funcao) VALUES (177,'Pedreiro')
In SQL SERVER MANAGEMENT it displays the following warning:
Can not enter NULL value in column 'id_documentos_defesa', table 'RDO.dbo.documentosDefesa'; the column does not allow nulls. INSERT failed.
I do not understand why I made this mistake, because this is not the first time I create a table and I do it!