sql bcp utility -in with xlsx ( Excel ) file
问题 How to use bcp utility to import data from xlsx to sql database. When i tried to import it throws error saying 'String data, right truncation'. Do i need to specify any format or delimiters option explicitly? If I try to export the data from database as xlsx file and import that back to DB it works fine. but the exported file is not properly formatted as i try to open it with office excel it show up in some weird format. 回答1: Don't use the xlsx file as it is, but save it in another format.