BCP从sql server 导出 excel

Code

用法:  bcp {dbtable | query} {in | out | queryout | format} datafile
  [-m maxerrors]            [-f formatfile]          [-e errfile]
  [-F firstrow]             [-L lastrow]             [-b batchsize]
  [-n native type]          [-c character type]      [-w wide character type]
  [-N keep non-text native] [-V file format version] [-q quoted identifier]
  [-C code page specifier]  [-t field terminator]    [-r row terminator]
  [-i inputfile]            [-o outfile]             [-a packetsize]
  [-S server name]          [-U username]            [-P password]
  [-T trusted connection]   [-v version]             [-R regional enable]
  [-k keep null values]     [-E keep identity values]
  [-h "load hints"]
NULL
+++++++++++++++++++++++++++++++++++++++++++

Excel文件已经存在,而且已经按照要接收的数据创建好表头——追加记录

Code

 

 

posted on 2008-09-11 22:30  simhare  阅读(513)  评论(0)    收藏  举报

导航