October 2, 2014 at 3:45 am
Hello All,
Good Morning All!
My First question on here!
I am having trouble loading Extended ASCII Characters into my SQL Server 2008(R2) DB.
The source file is an .xlsx,
PROCESS:
I remove unwanted columns, save as .csv and then I open the .csv in NOTEPAD and then SAVE as "UNICODE".
Finally I BULK INSERT into a table.
I used this method because leaving the .csv in NON-Unicode format meant after loading the data and viewing in my DEV environment(website) the characters came out incorrectly as ? or upside down. ?
I have also used the SSIS approach but to no avail.
The Characters I am having trouble with are:
a) โthis is U+2013 : EN DASH
b) โthis is U+2019 : RIGHT SINGLE QUOTATION MARK
INFO:
i) All Columns in the table are NVARCHAR
ii) Bulk Insert settings with or without.... "datafiletype=''widechar'',
I can work around this in the database with update\replace script for the specific characters in the column BUT I would like to solve the issue at SOURCE if possible.
I hope there is a SIMPLE solution to this. ๐
ANY IDEAS?
October 3, 2014 at 6:15 am
Have you tried adding
with (codepage = 'ACP')
to your bulk insert command?
October 3, 2014 at 6:39 am
Hi John,
Yep, I tried that also but sadly no luck there either.
Thanks for your response. ๐
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply