Error converting data types when importing from Excel to SQL Server 2008

前端 未结 6 1066
暗喜
暗喜 2020-12-03 06:00

Every time that I try to import an Excel file into SQL Server I\'m getting a particular error. When I try to edit the mappings the default value for all numerical fields is

6条回答
  •  不知归路
    2020-12-03 06:34

    Going off of what Derloopkat said, which still can fail on conversion (no offense Derloopkat) because Excel is terrible at this:

    1. Paste from excel into Notepad and save as normal (.txt file).
    2. From within excel, open said .txt file.
    3. Select next as it is obviously tab delimited.
    4. Select "none" for text qualifier, then next again.
    5. Select the first row, hold shift, select the last row, and select the text radial button. Click Finish

    It will open, check it to make sure it's accurate and then save as an excel file.

提交回复
热议问题