Created
May 23, 2017 12:54
-
-
Save a-sitnikov/3f1fc1df35fd1cec45ad109ba99bb5ea to your computer and use it in GitHub Desktop.
Delete file on MS SQl server via sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EXEC sp_configure 'show advanced options', 1 | |
RECONFIGURE | |
EXEC sp_configure 'xp_cmdshell', 1 | |
RECONFIGURE | |
EXEC xp_cmdshell "del /Q E:\Temp\erp.bak" | |
EXEC sp_configure 'xp_cmdshell', 0 | |
RECONFIGURE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment