vb.net - Ignore max length property on ADO.NET DataTable -
i create datatable using dataset tool in vb.net. i'm facing problem maxlength property, auto generated when created.
is there anyway ignore property? kept getting .net exception length violation. or there other way modify property quick, mean without open each table , modify each column using designer?
as zohar peled stated: no can't. if datatype of field equires set maxlength, applicable law field - no exceptions.
to save time of manual edit, fetch tables datasource sql query, loop through tables , then, if field exists within given table, execute alter table
command edit field-propertys.
depending on amount of affected tables, open-db-and-do-it-by-hand-method might faster , simpler.
Comments
Post a Comment