Hi
I am very very new to ASP.NET 2.0 and C#
I have a simple form and i need to insert a new record.
I used the following query
INSERT INTO FeatS
(ProjectID, Title)
VALUES (@projectID, @Title);
Select FeatureID, ProjectID,Title
From Feats
Where (FeatureID = SCOPE_IDENTITY())
But i got an error
Cannot insert the value NULL into column 'FeatureID', table 'CRM.dbo.FeatS'; column does not allow nulls. INSERT fails.
Could someone please help ?
Thanks in advance
I am very very new to ASP.NET 2.0 and C#
I have a simple form and i need to insert a new record.
I used the following query
INSERT INTO FeatS
(ProjectID, Title)
VALUES (@projectID, @Title);
Select FeatureID, ProjectID,Title
From Feats
Where (FeatureID = SCOPE_IDENTITY())
But i got an error
Cannot insert the value NULL into column 'FeatureID', table 'CRM.dbo.FeatS'; column does not allow nulls. INSERT fails.
Could someone please help ?
Thanks in advance