Data import from Excel to SQL Server failing to import all data

前端 未结 11 1686
一向
一向 2021-02-04 07:26

I have an odd thing happening with importing data from Excel to SQL Server using the Import and Export Data tool.

The short of it is that I can see the data in Excel, bu

相关标签:
11条回答
  • 2021-02-04 08:03

    Select all rows of that column and change type to Text in excel then Select the whole column and change the type to Text Will definitely work.

    0 讨论(0)
  • 2021-02-04 08:04

    Finally formatting cells to general worked for me where there is numeric value, earlier it was showing %s but now it is solved.

    0 讨论(0)
  • 2021-02-04 08:06

    I am also having the issue. The only way that I was able to resolve it was to save the .xlsx files as .csv files and then use the .csv files into the SQL Server "Import Data".

    It would seem that the integration between Microsoft Excel and Microsoft SQL Server would be cleaner.

    My versions are: Excel 2013. SQL Server 2012.

    0 讨论(0)
  • 2021-02-04 08:08

    I was able to solve the problem by sorting the data so that the text data was on top. That way SQL Server knew it was text data, not numeric data.

    0 讨论(0)
  • 2021-02-04 08:09

    You're using the Import wizard, no? Click on Edit Mappings on the "Select Source Tables and Views" page of the wizard, and check the Type, Nullable, and Size columns for each source column. It sounds like something's not getting mapped properly.

    0 讨论(0)
  • 2021-02-04 08:12

    I faced exactly the same issue Using .xlsx file solved my problem.

    0 讨论(0)
提交回复
热议问题