W
Wayne
Due to an existing limitation of Access, you cannot issue
an UPDATE query with more than 127 fields (Access has a
limit of 255 fields and during an update query, both the
column your are updating and the value your are inserting
are treated as fields, which therefore limits you to
having 127 columns in your query).
ADO didn't have a problem with this if you used a
connected recordset (I'm assuming because it uses cursors
or something). Since updates are submitted via UPDATE
queries in ADO.NET this becomes an issue.
Making the table have less than 127 columns is not an
option as there are existing implmentations of the
database (using old clients that used VB and ADO that
worked...).
Only updating the 'changed' fields does not solve the
problem as the problem still exists when you change more
thant 127 fields...
There are issues with splitting the UPDATE into 127 field
chucks if some of the fields more then one chunk are
marked as 'required'.
My question is, is there any way to deal with this issue
in ADO.NET? I don't want to have to resort to using
interop and old ADO recordsets but it appears to me like
this is the only way to deal with this issue in a generic
way.
Thanks
Wayne
an UPDATE query with more than 127 fields (Access has a
limit of 255 fields and during an update query, both the
column your are updating and the value your are inserting
are treated as fields, which therefore limits you to
having 127 columns in your query).
ADO didn't have a problem with this if you used a
connected recordset (I'm assuming because it uses cursors
or something). Since updates are submitted via UPDATE
queries in ADO.NET this becomes an issue.
Making the table have less than 127 columns is not an
option as there are existing implmentations of the
database (using old clients that used VB and ADO that
worked...).
Only updating the 'changed' fields does not solve the
problem as the problem still exists when you change more
thant 127 fields...
There are issues with splitting the UPDATE into 127 field
chucks if some of the fields more then one chunk are
marked as 'required'.
My question is, is there any way to deal with this issue
in ADO.NET? I don't want to have to resort to using
interop and old ADO recordsets but it appears to me like
this is the only way to deal with this issue in a generic
way.
Thanks
Wayne