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
Solved

bcp output

Posted on 2008-10-03
4
325 Views
Last Modified: 2011-08-18
I have a bcp batch file that is creating an output file correctly...but it is in UCS- 2 Little Endian format format.

How can I do this in ANSI?

bcp "exec database.dbo.datOutDupont" queryout d:\webs\ftpDupont\premierData.dat -w -S SERVER\INSTANCE -T -E -t^|

0
Comment
Question by:lrbrister
  • 2
  • 2
4 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 22641164
you specified -w which is unicode indeed.
you might want to use -c instead?

http://msdn.microsoft.com/en-us/library/ms162802.aspx
0
 

Author Comment

by:lrbrister
ID: 22641192
angellll,
  Good to hear from you.  Neither one of us has a life apparantly.

I'll try that and see if the feed goes through on Monday.  Thanks...as always.
0
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 22641270
>Neither one of us has a life apparantly.
well, I do have one :) I am currently organizing and playing a chess tournament. during the breaks, I can do a little bit of EE :)
0
 

Author Comment

by:lrbrister
ID: 22642266
angelIII:
Ah...
In my younger years I played a lot of chess.  Never got past 1826 though.
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
data stored like ????? in sql server column 19 53
SQL SERVER - Index skipped a number 2 25
SSAS Store Forecasting data in the cube 1 17
SQL, add where clause 5 23
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…
Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
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.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

809 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