Forum Discussion
Tim Hunter
Jan 16, 2019Iron Contributor
Importing Data from Excel to SQL table
I am getting truncation errors while importing Excel spreadsheet to SQL table. Not quite sure how to fix this. My column in SQL table is plenty long enough to hold the contents of column. Here are th...
Jan 18, 2019
It would seem that you have one or more characters that are not being recognized by the code page you are using. Change data type for destination column to nvarchar(xx) Unicode. That should do it I suspect.
- Tim HunterJan 18, 2019Iron Contributor
I do have all my columns set to nvarchar and still getting the truncation error. Any other ideas?

- Pio-BalistoyJan 24, 2019MCTAS Christian pointed out, it may not be an issue on the data type but on the collation. There is a character on the excel that is not recognized by the Collation of the database/Instance. You can check the Description column on the Ticket worksheet. You can workaround this by changing the column/table/database collation for the destination. Or re save/import the excel file to a compatible encoding.
- Tim HunterJan 24, 2019Iron Contributor
Thanks again for your feedback and help! I have tried the Description column in my Excel as both Text and General but still does not work. My description column in SQL table is nvarchar(1500), should I be using a different Data Type on the column in SQL? Or is there a better way to save my Excel spreadsheet before importing?