Solved

load flatfiles with bcp in SQLServer

Posted on 1998-11-20
4
246 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
  • 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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Addition to SQL for dynamic fields 6 37
Simple SQL query from two tables 13 52
Sql server function help 15 28
Return 0 on SQL count 24 28
Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
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.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

775 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