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.
    
        | 
                
                    | 
                            
                                | Author | Topic |  
                                    | kodyjoriStarting 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, RankFROM Working.dbo.TWE_ColdCallAccounts " out "c:\ColdCallAccounts.xls" -c -CRAW -T -SSERVER1 |  |  
                                |  |  |  |