Solved

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

Posted on 2009-03-30
2
268 Views
Last Modified: 2012-05-06
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
Comment
Question by:StanleyLMW
  • 2
2 Comments
 
LVL 8

Expert Comment

by:vinurajr
ID: 24026288
bcp Database.dbo.Table out c: Filename.txt -n -S Server -U Username -P Password -eC: error.txt
0
 
LVL 8

Accepted Solution

by:
vinurajr earned 500 total points
ID: 24026293
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Query Syntax Join 4 39
Gettg error - Please help Msg 252, Level 16, State 1, Line 1 3 28
Help With Database JOIN 7 27
SYbase 4 24
If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

813 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now