Importing Excel data with Danish characters into Azure SQL database

Peter Grandjean 30 Reputation points
2023-10-05T10:18:08.1166667+00:00

I am having trouble importing Excel data with Danish characters like æ, ø, and å into Azure SQL database. I have tried saving the data as CSV and using the SQL Server Import extension, but the special characters get converted into strange signs. I have also attempted saving the Excel file as TXT and CSV, but to no avail.

I have read online to select the correct code page for the source data during import, specifically, code page for Western European (Windows) - Codepage 1252. However, I cannot find where to select the codepage during import. Can someone please help me out? Thank you.

Azure SQL Database
Microsoft 365 and Office | Excel | For business | Windows
{count} vote

Accepted answer
  1. Alberto Morillo 34,671 Reputation points MVP Volunteer Moderator
    2023-10-05T12:57:36.39+00:00

    Please save the text file again as CSV then convert that CSV file to UTF-8 format using below steps.

    1. Open the CSV file with Notepad++ by right-clicking on the file and choosing Edit with Notepad++.
    2. In Notepad++, choose Encoding > Convert to UTF-8 without BOM. This will change the encoding of the file to UTF-8 without adding any extra bytes at the beginning of the file.
    3. Save the file and close Notepad++.

    You can try now to import the CSV file to Azure SQL again.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Peter Grandjean 30 Reputation points
    2023-10-12T06:06:57.5866667+00:00

    I changed the format from Date to DateTime in the sql db.

    I seems to have solved my problem.

    Thank you for now

    Peter


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.