yasutakaito

Enable xp_cmdshell

Feb 26th, 2019
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
T-SQL 0.32 KB | None | 0 0
  1. ---- To allow advanced options to be changed.
  2. EXEC sp_configure 'show advanced options', 1
  3. GO
  4. ---- To update the currently configured value for advanced options.
  5. RECONFIGURE
  6. GO
  7. ---- To enable the feature.
  8. EXEC sp_configure 'xp_cmdshell', 1
  9. GO
  10. ---- To update the currently configured value for this feature.
  11. RECONFIGURE
  12. GO
Advertisement