Solved

bcp output

Posted on 2008-10-03
4
329 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
[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
  • 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.

705 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