KingAmu'Code

2010年3月23日 #

BCP将数据导出excel

摘要: EXEC master..xp_cmdshell 'bcp "SELECT id,dwell FROM DB_Name.dbo.t_text" queryout D:\F.txt -w -T -S"192.168.1.2" -U"sa" -P""'如果提示xp_cmdshell的话,要先开通开启:EXEC sp_configure 'show advanced options', 1;RECONF... 阅读全文

posted @ 2010-03-23 11:31 阿牧 阅读(242) 评论(0) 推荐(0) 编辑

导航