The value violated the integrity constraints for the column

前端 未结 8 1391
情深已故
情深已故 2020-12-03 06:49

I am trying to import the data from Excel file into SQL Server database. I am unable to do so because I am getting following errors in the log file. Please help. The log err

8条回答
  •  眼角桃花
    2020-12-03 07:10

    Delete empty rows from Excel after your last row of data!

    Some times empty rows in Excel are still considered as data, therefore trying to import them in a table with one or more non nullable columns violates the constrains of the column.

    Solution: select all of the empty rows on your sheet, even those after your last row of data, and click delete rows.

    Obviously, if some of your data really does vioalte any of your table's constraints, then just fix your data to match the rules of your database..

提交回复
热议问题