Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Insert statement, NULL error

Status
Not open for further replies.

schroednic

IS-IT--Management
Nov 18, 2008
21
0
0
US
Hi all;

I am trying to use an insert statement to update a table. I only want to update a few columns, but upon running the query it errors out stating that the other columns can't be NULL values.

Anyway around this, as I don't need to "add" info to those particular columns.

Thanks in advance.
 
Either makes these columns NULLable either set default values for them.

Borislav Borissov
VFP9 SP2, SQL Server 2000,2005 & 2008.
 
I forgot to mention that if you make these columns NULLable the whole application could be ruined. So one more advice, provide values for them. This will cost you a few more click on keyboard, but after that you could sleep peacefully :)

Borislav Borissov
VFP9 SP2, SQL Server 2000,2005 & 2008.
 
What Boris means is that when a table is created you can tell it not to allow some columns to be null.

So you either need to redefine your table and allow null values in those columns or simply put something in the columns.

Simi

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top