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

 All Forums
 SQL Server 2012 Forums
 SSIS and Import/Export (2012)
 bcp export not overwriting file

Author  Topic 

kodyjori
Starting Member

1 Post

Posted - 2014-03-07 : 10:12:08
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
   

- Advertisement -