Solved

load flatfiles with bcp in SQLServer

Posted on 1998-11-20
4
248 Views
Last Modified: 2010-03-19
SQLServer 6.5, NT Server 4.

I try to load a flatfile into a sqlserver table with a bcp-command. It works. But I have one problem: all my ASCII characters > 128 (e.g. à, ï, é...) are wrong converted (e.g. à (133) becomes n, ...) Does anyone knows a solution.  
0
Comment
Question by:krisvangool
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 7

Accepted Solution

by:
tchalkov earned 100 total points
ID: 1091910
this usually happens when the character set of sql server is different from tha character set of your file. so check the character set of the sql server. have in mind that if you change the character set you must rebuild the master database which means that you must recreate all databases that you have currently
0
 

Author Comment

by:krisvangool
ID: 1091911
Thank you for answering but ...

Where/how can I find/check/change the character set definitions of SQLServer ?
0
 
LVL 7

Expert Comment

by:spiridonov
ID: 1091912
You can check it by executing sp_configure stored procedure, however you can't change it. In order to have a different character set you will have to reinstall SQL server.
0
 
LVL 7

Expert Comment

by:tchalkov
ID: 1091913
you can change it using sql server setup - there is no need to reinstall it but the effect will be the same - you will lose all databases
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Viewers will learn how the fundamental information of how to create a table.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question