I have a form that has a bunch of textboxes and such bound to a SQL 2000 database. Now some of the columns in the database are supposed to have default values so that when a new record is added for instance, column 12 is automatically set to the word FALSE.
Now updating and the process of adding a new record works fine, however when I add a new record through my VB app the columns that are supposed to have default values of FALSE are in turn set to null.......which of course craps out my application.
And here is another twist, if I manually add a record using the SQL Admin console the columns get set with the correct default value.
Now I know very little about SQL and our SQL admin knows even less than I do about VB .NET. SO imagine our pickle.
Anyone have any ideas? Should I used the INSERT command (and if so could someone post the syntax) instead of the AddNew method?
Thanks in advance. Maybe one day I wont be such a n00b.
Now updating and the process of adding a new record works fine, however when I add a new record through my VB app the columns that are supposed to have default values of FALSE are in turn set to null.......which of course craps out my application.
And here is another twist, if I manually add a record using the SQL Admin console the columns get set with the correct default value.
Now I know very little about SQL and our SQL admin knows even less than I do about VB .NET. SO imagine our pickle.
Anyone have any ideas? Should I used the INSERT command (and if so could someone post the syntax) instead of the AddNew method?
Thanks in advance. Maybe one day I wont be such a n00b.