摘要: 1.将数据库中查询的表格导出到指定的路径,首先启用.xp_cmdshell,上一篇随笔有写如何开启.xp_cmdshell。 DECLARE @sql NVARCHAR(4000) --定义变量存储格式 DECLARE @server NVARCHAR(20) --定义变量存储格式 set @ser 阅读全文
posted @ 2019-04-10 15:11 A大洋芋 阅读(1050) 评论(0) 推荐(0) 编辑
摘要: 1. 查看系统数据库参数配置: select * from sys.configurations where name='xp_cmdshell' 修改系统数据库参数: 2.通过命令方式,启动xp_cmdshell: sp_configure 'show advanced options',1 re 阅读全文
posted @ 2019-04-10 10:25 A大洋芋 阅读(464) 评论(0) 推荐(0) 编辑