Validate that data fields are not too big when saving to a database?
<p>I have an application which runs as a windows service and reads a text data file, then maps the file contents to a database. The app uses a batch commit and periodically the data is larger than the database fields.</p>

<p>What is the best way to validate that the data fields are not too big before trying to save them to a database?</p>
