<p>Is there a clever way to determine which field is causing 'string or binary data would be truncated' with LINQ.</p>

<p>I've always ended up doing it manually by stepping through a debugger, but with a batch using 'SubmitChanges' I have to change my code to inserting a single row to find the culprit in a batch of rows. </p>

<p>Am I missing something or in this day and age do I really have to still use a brute force method to find the problem.</p>

<p>Please dont give me advice on avoiding this error in future (unless its something much cleverer than 'validate your data'). The source data is coming from a different system where I dont have full control anyway - plus I want to be lazy.</p>

<p>PS. Does SQL Server 2008 actually tell me the field name. Please tell me it does! I'll upgrade!</p>

Assuming you are processing a large batch of records and you don't want to (can't) validate the data before hand and you just want db constraints to catch any errors?
Change your program to catch the exception and print out the current record details to a log file or something.
```
```
Record # 9999
Caused "string or binary data would be truncated" error
Field1: "Data" Length: 55
Field2: 9999
etc.
```
```