27,580
社区成员
发帖
与我相关
我的任务
分享
---------------------- 从现有表导出结果 ----------------------
-- 将AdventureWorks.HumanResources.Employee表的数据导出到C:\test.xls
EXEC master..xp_cmdshell ' BCP "select * from AdventureWorks.HumanResources.Employee" queryout C:\test.xls -c -SCN110075 -Usa -Pchang'
-- 删除C:\test.xls
EXEC master..xp_cmdshell 'del C:\test.xls '