Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8075851
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T15:07:38+00:00 2026-06-05T15:07:38+00:00

Currently working with converting SQLException error messages into messages that are more useful for

  • 0

Currently working with converting SQLException error messages into messages that are more useful for the end user. My largest issue has been finding the information I’m looking for.

For instance, error code 8114 is

“Error converting data type [Type1] to [Type2]”

And error code 8152 is

“String or binary data would be truncated”

Using ADO.NET in VB.NET with SQLServer, is there a simple way to figure out which columns are affected by these errors?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T15:07:40+00:00Added an answer on June 5, 2026 at 3:07 pm

    The problem is that the error from SQL Server does not give that information so the only way to identify which field is causing the issue is to break apart your SQL statement to run it for the separate fields individually. That sounds like a lot of work for something the developer should be testing to make sure that it does not happen to begin with. There are errors that are not the developer’s fault, but the two you listed here are things the developer should be keeping from happening and should be part of the unit tests for the process.

    Some of the errors I can think of that are not a developer error, are ones to do with connection errors with SQL Server or corruption errors with the database.

    I actually like the fact that my user’s can’t always figure out what is causing the problem because it tends to force them to tell me there is a problem with my program. If they figure out how to get around an error that I should have fixed, they tend to not tell me there is a problem and sometimes it has been years before I found out there was an issue.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on converting an old C program (currently run on UNIX) into our
Currently working on a site built in Django and i'm getting an issue when
Am currently working on an application that requires users to submit posts and comments
Im currently working on a site that you can upload large files.. on local
I'm currently working on converting an Android app I built natively as an iPhone
I am currently working on converting an application from access to C# and have
I've got a bit of a problem. I'm currently working on converting an old
I'm currently converting my portfolio mock up into html/css and I've come across something
Currently I'm working on converting object to XML, I notice all object properties are
Currently working on a game, and is converting it to retina. I am using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.