Cornstarch
Programmer
I updated my data into the appropriate columns in the Datarow by building a DataAdapter, a CommandBuilder object, and retrieved the Update command object. After that, I submitted the Update statement via the Update method of the DataAdapter...it worked fine except for one thing.
It can't save the data into the table unless I provide a unique number to the table's primary key in my code. The table's PK already ha a built in number generator (it gives a unique number to the PK column whenever a row is added). I can manually insert a row into the table w/o giving a number to the PK column at the SQL prompt but I can't do it from the VB.NET code.
Here is the error message:
"An unhandled exception of type 'System.Data.NoNullAllowedException' occurred in system.data.dll Additional information: Column 'OWNER_ID' does not allow nulls."
Thank you in advance for your help.
Ann
It can't save the data into the table unless I provide a unique number to the table's primary key in my code. The table's PK already ha a built in number generator (it gives a unique number to the PK column whenever a row is added). I can manually insert a row into the table w/o giving a number to the PK column at the SQL prompt but I can't do it from the VB.NET code.
Here is the error message:
"An unhandled exception of type 'System.Data.NoNullAllowedException' occurred in system.data.dll Additional information: Column 'OWNER_ID' does not allow nulls."
Thank you in advance for your help.
Ann