Home > Database > Mysql Tutorial > 数据库管理安全管理识别SQLServer中空密码或者弱密码的

数据库管理安全管理识别SQLServer中空密码或者弱密码的

WBOY
Release: 2016-06-07 15:18:56
Original
964 people have browsed it

--Creating a Login which has same password as its login name. Then creating a user with same name --and assigned it db_owner access. CREATE LOGIN mssqltips WITH PASSWORD = 'mssqltips' , CHECK_POLICY = OFF go use tempdb go CREATE USER mssql

--Creating a Login which has same password as its login name. Then creating a user with same name

--and assigned it db_owner access.

CREATE LOGINmssqltips WITH PASSWORD='mssqltips'

, CHECK_POLICY=OFF

go

use tempdb

go

CREATE USER mssqltips forlogin mssqltips

go

sp_addrolemember'db_owner',mssqltips

go

--Creating a Login without password. Then creating a user with same name and assigned it db_owner access.

CREATE LOGINmssqltips_1 WITH PASSWORD=''

, CHECK_POLICY=OFF

go

use tempdb

go

CREATE USER mssqltips_1 for login mssqltips_1

go

sp_addrolemember'db_owner',mssqltips_1

go

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template