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

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

WBOY
WBOYOriginal
2016-06-07 15:18:56896browse

--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

Statement:
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
Previous article:oracle 格式化数字 toNext article:MySQL 5.5源码安装