EXEC sp_configure N'show advanced options', N'1' 
RECONFIGURE WITH OVERRIDE
EXEC sp_configure N'xp_cmdshell', N'1'
RECONFIGURE WITH OVERRIDE 
EXEC sp_configure N'show advanced options', N'0' 
RECONFIGURE WITH OVERRIDE


EXEC master..xp_cmdshell 'bcp "SELECT * FROM  [AirTicket].dbo.[tb]" queryout "F:\data.xls" -c -t -T '

sqlServer导出到外部(excel、txt等)

更多:https://blog.csdn.net/qq_42229253/article/details/81123822

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-16
  • 2021-12-14
  • 2021-10-17
猜你喜欢
  • 2021-11-04
  • 2021-12-20
  • 2021-12-16
  • 2021-11-29
  • 2021-07-18
  • 2021-12-28
相关资源
相似解决方案