advanced code snippet search
mafro on 04/17/09
This snippet enables a reboot of an SQL Server when the connecting user is running with the 'sysadmin' server role.
exec master..xp_cmdshell 'shutdown /r'
Report this snippet
You need to login to post a comment.