SQL 直接汇出 Excel 表

exec   master..xp_cmdshell   'bcp   "select *  from   [BookShop].[dbo].[tb_Books]  where [UnitPrice]=22"   queryout   d:temp.xls   -c   -q   -S"."   -U"sa"   -P""'
posted @ 2012-06-05 00:04  hishanghai  阅读(118)  评论(0编辑  收藏  举报