Solved

bcp output

Posted on 2008-10-03
4
323 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 142

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 142

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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

785 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