troubleshoot INSERT errors in SQL Server 2008

  • How would you troubleshoot INSERT errors when dealing with a large data-set (100+ fields)?

  • navecomp (1/18/2011)


    How would you troubleshoot INSERT errors when dealing with a large data-set (100+ fields)?

    Practically, I copy the DDL to a new table, point the insert at that, and then halve the fields via comments until I find the problem field(s). That's assuming you're getting a data error like 'can't conver to numeric' and not something for 'duplicated primary key' inserts, which is a whole different issue.


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • I do something like Craig, except I halve the rows returned to find rows that cause the problem and then I identify the column(s) that are causing it. Usually identifying the column is pretty easy.

  • Thanks both of you for the quick response.

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply