Cannot insert the value NULL into column 'CandidateID', table 'OJT.dbo.Pipeline'; column does not allow nulls - What the hell?

In my ASP.NET 4.0 / VB web form I'm getting this error when I try to submit the form:
Cannot insert the value NULL into column 'CandidateID', table 'OJT.dbo.Pipeline'; column does not allow nulls

Here is my INSERT statement:
        Dim sql As String = "INSERT INTO Pipeline (Office, EmployerID, EmployerName, NewEmployer, Position, Funding) VALUES (@Office, @EmployerID, @EmployerName, @NewEmployer, @Position, @Funding); SELECT SCOPE_IDENTITY();"


There is NO "CandidateID" anywhere in the sql statement. Nowhere.  Not at all.  The word "Candidate" does not exist in my SQL anywhere.

I've edited and saved the page multiple times.
I've done a "REBUILD" in Visual Studio 2012
I loaded the page on a DIFFERENT COMPUTER in case it was cached in my browser.
I did Ctrl-F word search for the word "CandidateID" in my code.  It's not there.  Anywhere. (other than some commented out lines.)

Yes, it was in the insert statement at one time, but it's not now.  I removed it.  See INSERT statement above.  What is going on here?
LVL 1
megninAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Scott PletcherSenior DBACommented:
>> There is NO "CandidateID" anywhere in the sql statement. <<

That's actually the problem.  That column in that table requires a value, it can't be left empty (NULL).  If that value is not provided by an identity column or other default, then you must provide a value for that column when you insert a row into that table.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
megninAuthor Commented:
Oh, gotcha.  I completely understand now.  Thank you.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2008

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.