Posted By

mafro on 04/17/09


Tagged

sql admin


Versions (?)

Reboot SQL Server


 / Published in: SQL
 

This snippet enables a reboot of an SQL Server when the connecting user is running with the 'sysadmin' server role.

  1. exec master..xp_cmdshell 'shutdown /r'

Report this snippet  

You need to login to post a comment.