Home All Groups Group Topic Archive Search About

Conversion issues in importing DBF in SQL 2000

Author
9 Sep 2005 2:45 PM
Bert
Hello!
I try to import a DBF file into my Microsoft SQL Server 2000 database and I
have some issues with corrupted data. I actually have stored in my DBF
records with different languages, such as German or French, for which I used
some special characters (accents, ç, ..).
When I import my DBF file, I got no error but when I look at the data, the
strange characters have not been converted and I got errors in place of them.
What can I do to make sure my import respects the integrity of my data?
I was using the standard Microsft DBF driver and I have tested the Advantage
Databaser Server driver as well. Same results unfortunately.
Many thanks for your help.
Regards,
Bert

Author
9 Sep 2005 4:23 PM
ML
For national characters you need the unicode datatype. Look up 'nchar',
'nvarchar' and 'ntext' in Books Online. Also the use of unicode is well
explained in Books Online.


ML
Author
12 Sep 2005 12:28 PM
Bert
Thank you for your note.

Could you please help me once more? It sounds like Books Online is a place
on the web you know about, but this is not my case. Which website could I
consult to know more about the local unicode?

If I understand it right, I need to replace all the characters, is it exact?
Does SQL Server 2000 do not convert these characters automatically?

Thanks.

Bert

Show quote
"ML" wrote:

> For national characters you need the unicode datatype. Look up 'nchar',
> 'nvarchar' and 'ntext' in Books Online. Also the use of unicode is well
> explained in Books Online.
>
>
> ML
Author
12 Sep 2005 3:02 PM
ML
Unicode is an universal standard: http://www.unicode.org/

Books Online are available on-line: http://www.msdn.microsoft.com/sql/
and can also be installed locally: http://www.microsoft.com/downloads/details.aspx?FamilyID=a6f79cb1-a420-445f-8a4b-bd77a7da194b&DisplayLang=en

To store data as unicode, the data must be created as unicode in the client
application. Look it up in your programming language reference.


ML

AddThis Social Bookmark Button