BCP

#BCP studysql

#The pre-condition is that you must install MSSQLserver

#It will generate the file named QueryOut.csv whose content is the result of execute the sql commandit

BCP "Select * from database_name.dbo.table_name" queryout C:\QueryOut.csv -w -t\t -S server -U username -P passwordio

相關文章
相關標籤/搜索