Please start any new threads on our new site at http://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2012 Forums
 SSIS and Import/Export (2012)
 bcp export not overwriting file
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

kodyjori
Starting Member

Canada
1 Posts

Posted - 03/07/2014 :  10:12:08  Show Profile  Reply with Quote
I'm using the following code to export data to a file, but it is not overwriting or appending data to the existing file:

bcp "SELECT TerritoryID, Territory, Rep, Banner, AccountID, LicenseeNo, Account, AddressLine1, City, Prov, Postal, CallsPerYear, TimeInCall, DriveTime, Rank
FROM Working.dbo.TWE_ColdCallAccounts " out "c:\ColdCallAccounts.xls" -c -CRAW -T -SSERVER1
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000