(12R1)
host
date
exit
!date
(5.6)
system date
\! date
(9.4)
\! date
(2014)
EXEC sp_configure 'show advanced options', 1;
RECONFIGURE;
EXEC sp_configure 'xp_cmdshell', 1;
RECONFIGURE;
xp_cmdshell 'date'
(12R1)
host
date
exit
!date
(5.6)
system date
\! date
(9.4)
\! date
(2014)
EXEC sp_configure 'show advanced options', 1;
RECONFIGURE;
EXEC sp_configure 'xp_cmdshell', 1;
RECONFIGURE;
xp_cmdshell 'date'