`
wostyh
  • 浏览: 75605 次
  • 性别: Icon_minigender_1
  • 来自: 长沙
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论

sql server导出数据到Excel

阅读更多

执行语句: 

EXEC master..xp_cmdshell 'bcp test.dbo.Table1 out c:\dd\Temp.xls -c -q -S".\SQLEXPRESS" -U"sa" -P"123"'

 

出错解决方法: 

exec sp_configure 'show advanced options',1
reconfigure

exec sp_configure 'xp_cmdshell',1
reconfigure

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics