Solved

bcp output

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
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

763 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