Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

SQL query to find logins where LOGINPROPERTY(name, 'PasswordLastSetTime') is less than 2017-01-01

$
0
0
Hi I have a query which shows logins details including among other things last password set time as follows:

Select @@servername as SQLInstance, name as Login,
LOGINPROPERTY(name, 'PasswordLastSetTime') as PasswordLastSetTime, type, type_des

Viewing all articles
Browse latest Browse all 3145

Trending Articles