sqlServer海量数据导出为Excel
---1、开启xp_cmdshell选项;基于安全的考虑,系统默认没有开启xp_cmdshell选项
EXEC sp_configure 'show advanced options', 1;
RECONFIGURE;
GO
EXEC sp_configure 'xp_cmdshell', 1;
RECONFIGURE;
GO
---2、查询服务名
SELECT serverproperty('servername')
---3、导出表至EXCEL(类Excel,虽然格式是xls,但不受.
原创
2020-08-27 09:06:14 ·
871 阅读 ·
0 评论