I have a C# Winforms application that is inserting data into a SQL 2005 server using LINQ.
A very intermittent error (probably happens about 1 time per 1,000 user form submissions) is occurring: String or binary data would be truncated.
When this error occurs, the submission is not inserted in the database. My understanding is this error occurs when you attempt to insert a value into a field that is too narrow to contain the data being inserted.
My question is, does anyone know of a tool or way to check the MS SQL logs to see what field this is happening to? The database is relatively low traffic, so I don't mind manually looking through a log (if I knew what I was looking for). There is no DB admin to assist on the project, and my goal is to restrict user input in the software to prevent the error from happening, but so far I have been unable to find the field causing the problem.
A very intermittent error (probably happens about 1 time per 1,000 user form submissions) is occurring: String or binary data would be truncated.
When this error occurs, the submission is not inserted in the database. My understanding is this error occurs when you attempt to insert a value into a field that is too narrow to contain the data being inserted.
My question is, does anyone know of a tool or way to check the MS SQL logs to see what field this is happening to? The database is relatively low traffic, so I don't mind manually looking through a log (if I knew what I was looking for). There is no DB admin to assist on the project, and my goal is to restrict user input in the software to prevent the error from happening, but so far I have been unable to find the field causing the problem.