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

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

Starting Member

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  
 New 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