Quantcast
Channel: » Security
Viewing all articles
Browse latest Browse all 2

Script to check – Login Name and Password are same

$
0
0

It is always a risk if the user name & password is equal. You can run the below script to find out the list of User/Login name & password which are equal.

select  
cast(@@SERVERNAME as varchar(150)) as SQLInstanceName
,name as [LoginName]
,'Password is same as Login Name' [Description]
from sys.syslogins
WHERE PWDCOMPARE (name,password) = 1

Filed under: Database, DB Articles, SQL Scripts, SQL Server, SQL Server 2008, SQL Server 2008 R2, SQL Server 2011 (Denali) Tagged: Login, Password, Security, SQL Security, SQL Tips and Tricks, T-SQL

Viewing all articles
Browse latest Browse all 2

Trending Articles