/ Published in: SQL
This snippet enables a reboot of an SQL Server when the connecting user is running with the 'sysadmin' server role.
Expand |
Embed | Plain Text
exec master..xp_cmdshell 'shutdown /r'
You need to login to post a comment.
