• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 280
  • Last Modified:

MS SQL syntax : How to use bcp to output a fixed column data file ?

Hi,

I'm now trying to use bcp command to output a MS SQL table into a "fixed column" format text file.  Could anyone help me on this and give me an example for quick resolution?  Thanks a lot.

Cheers
Stanley
0
StanleyLMW
Asked:
StanleyLMW
  • 2
1 Solution
 
vinurajrCommented:
bcp Database.dbo.Table out c: Filename.txt -n -S Server -U Username -P Password -eC: error.txt
0
 
vinurajrCommented:
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now