We help IT Professionals succeed at work.
Get Started

Bulk insert french characters (SQL 2008)

IT-CICA
IT-CICA asked
on
3,443 Views
Last Modified: 2012-06-27
Hi,

I am trying to do a bulk insert form csv file. The file may contain some french characters. When I open the file in notepad, the french character shows up fine, when  Iopen the same file in excel, the french charatcer turns into something like MÉNAR001 as opposed to MÉNAR001 shown in note pad.

When I bulk insert this file using following SQL statement:
bulk insert dbo.TestBulk from 'D:\ReportTest.csv'
   WITH
      
  (      
        CODEPAGE = 'ACP',
        FIELDTERMINATOR = '|',
    ROWTERMINATOR = '\n'
         
  )
the field does not contain french charatcers.
I tried using codepage values like RAW,OEM,65001, but the field still contains strange characters.

Thanks in advance,
Gauri

Comment
Watch Question
Commented:
This problem has been solved!
Unlock 1 Answer and 9 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE