468,101 Members | 1,339 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,101 developers. It's quick & easy.

when I connect Visual basic.net 2010 with sql server 2008 by dataset and i drag table

I have a vb.net 2010 winform data app with sql server 2008 backend. The ID
field
in the tblClients table is an 'int' identity column that does not allow
nulls. The problem is that when I try to save the record using the
below
code;

Me.Validate()
Me.MMOBindingSource.EndEdit()
Me.TableAdapterManager.UpdateAll(Me.NNDatasetaS)

I get an 'Column 'ID' does not allow nulls' error on the second line
Me.MMOBindingSource.EndEdit(). What is the
problem and how can I fix it?

Thanks

Regards
Oct 11 '16 #1
0 701

Post your reply

Sign in to post your reply or Sign up for a free account.

By using this site, you agree to our Privacy Policy and Terms of Use.