博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
T-SQL: Create folders in remote server by sql statement
阅读量:4696 次
发布时间:2019-06-09

本文共 411 字,大约阅读时间需要 1 分钟。

I got two options to create directory in the remote server by executing T-SQL:

1. xp_cmdshell

EXECUTE master..xp_cmdshell N'md "c:\db\backup"'

--Or you can create a bat to wrap multiple scripts

But you have to turn on xp_cmdshell settings to allow this command execution correctly.

2. xp_create_subdir

EXEC master..xp_create_subdir N'c:\db\backup'

转载于:https://www.cnblogs.com/aot/archive/2013/04/01/2993988.html

你可能感兴趣的文章
IT常用单词
查看>>
拓扑排序
查看>>
NYOJ--32--SEARCH--组合数
查看>>
JMS
查看>>
gulpfile 压缩模板
查看>>
【34.14%】【BZOJ 3110】 [Zjoi2013]K大数查询
查看>>
【 henuacm2016级暑期训练-动态规划专题 A 】Cards
查看>>
第五篇:白话tornado源码之褪去模板的外衣
查看>>
设备常用框架framework
查看>>
bootstrap模态框和select2合用时input无法获取焦点(转)
查看>>
21世纪经济网APP
查看>>
解决NetworkOnMainThreadException
查看>>
1039 到底买不买
查看>>
农银电商项目学习笔记(一)
查看>>
MockObject
查看>>
Chukwa
查看>>
(转)Maven仓库——私服介绍
查看>>
设计模式之工厂模式
查看>>
仿复制粘贴功能,长按弹出tips的实现
查看>>
Kubernetes-Host网络模式应用
查看>>