ASCII Character Translation issue into SQL Server 2008 R2

  • 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?

  • Have you tried adding

    with (codepage = 'ACP')

    to your bulk insert command?

  • 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