G
Guest
I have object that connects to a database and fetches data for 10 tables in
the database.
Because the database schema can change I have opted for a collection of SQL
Databadpaters that fill a dataset client side. The procedure cycles through
each table and executes "select * from " then a fill missing schema action
with key ("MissingSchemaAction.AddWithKey") and then finally the SQL Command
builder.
This has been working fine now for a while with other changes however the
schema changed recently with a new column added one of the tables. The
column in question is a bit field and does not allow nulls and has a default
value of 0. Back on the client I am not touching the column but ADO.NET for
some reason tries to enter null instead of zero into this column and
therefore errors.
Am I missing something. I do not want to split the code up and start
referencing each table as the automated cycle though the tables works nicely.
please help?
Thanks for any time spent on this
Sharat Koya
the database.
Because the database schema can change I have opted for a collection of SQL
Databadpaters that fill a dataset client side. The procedure cycles through
each table and executes "select * from " then a fill missing schema action
with key ("MissingSchemaAction.AddWithKey") and then finally the SQL Command
builder.
This has been working fine now for a while with other changes however the
schema changed recently with a new column added one of the tables. The
column in question is a bit field and does not allow nulls and has a default
value of 0. Back on the client I am not touching the column but ADO.NET for
some reason tries to enter null instead of zero into this column and
therefore errors.
Am I missing something. I do not want to split the code up and start
referencing each table as the automated cycle though the tables works nicely.
please help?
Thanks for any time spent on this
Sharat Koya