filmov
tv
SQL Server login Password expiration || SQL Server Login Password Enforce Policy || Reset Passwordw
Показать описание
SQL Server login Password expiration || SQL Server Login Password Enforce Policy || Reset Passwordw
Hi Mate,
Welcome to my channel Tech & Art.
*************************************************************
SELECT SL.name AS LoginName
,LOGINPROPERTY (SL.name, 'PasswordLastSetTime') AS PasswordLastSetTime
,LOGINPROPERTY (SL.name, 'DaysUntilExpiration') AS DaysUntilExpiration
,DATEADD(dd, CONVERT(int, LOGINPROPERTY (SL.name, 'DaysUntilExpiration'))
, CONVERT(datetime, LOGINPROPERTY (SL.name, 'PasswordLastSetTime'))) AS PasswordExpiration
,SL.is_policy_checked AS IsPolicyChecked
,LOGINPROPERTY (SL.name, 'IsExpired') AS IsExpired
,LOGINPROPERTY (SL.name, 'IsMustChange') AS IsMustChange
,LOGINPROPERTY (SL.name, 'IsLocked') AS IsLocked
,LOGINPROPERTY (SL.name, 'LockoutTime') AS LockoutTime
,LOGINPROPERTY (SL.name, 'BadPasswordCount') AS BadPasswordCount
,LOGINPROPERTY (SL.name, 'BadPasswordTime') AS BadPasswordTime
,LOGINPROPERTY (SL.name, 'HistoryLength') AS HistoryLength
WHERE is_expiration_checked = 1
ORDER BY LOGINPROPERTY (SL.name, 'PasswordLastSetTime') DESC
********************************************************************************************
SQL, SQL DATABASE, SQL BACKUP, RESTORE, RECOVERY, USERS, LOGINS, AGENT, SQL JOBS, SQL ARCHITECTURE, SQL INSTANCE, SQL UPGRADE, SQL PATCHING, SQL PERFORMANCE, SQL MANITINEMANC, SQL SLOWNESS, SQL HARDWARE, SQL LIFE CYCLE, SQL DR, SQL MIRRORING, SQL REPLICATION SQL ALWAYS ON, SQL LOGSHIPING, SQL CLUSTERING, SQL INSTALLATION, SQL MIGRATION, SQL TO AZURE,CLOUDE,AZURE,AMAZON,GOOGLE, SQL TO AWS,AWS,SQL MIGRATION TO CLOUDE,AZURE FUNDAMENTAL, AZURE CERTIFICATION, AZURE ARCHITECTURE, SQL ON LINUX, SQL LINIX INSTALLATION, SQL PERFORMANCE QUERY, SQL BLOCKING,SQL DEADLOCK,SQL DATABASE CRASHED, SQL DATABASE DOWN,SQL SERVICES , SQL SERVICES STOP, SQL INSTALLATION FAILED, SQL UPGRADE FAILED,
#sqlserver #sqlserverdba #techandart
Hi Mate,
Welcome to my channel Tech & Art.
*************************************************************
SELECT SL.name AS LoginName
,LOGINPROPERTY (SL.name, 'PasswordLastSetTime') AS PasswordLastSetTime
,LOGINPROPERTY (SL.name, 'DaysUntilExpiration') AS DaysUntilExpiration
,DATEADD(dd, CONVERT(int, LOGINPROPERTY (SL.name, 'DaysUntilExpiration'))
, CONVERT(datetime, LOGINPROPERTY (SL.name, 'PasswordLastSetTime'))) AS PasswordExpiration
,SL.is_policy_checked AS IsPolicyChecked
,LOGINPROPERTY (SL.name, 'IsExpired') AS IsExpired
,LOGINPROPERTY (SL.name, 'IsMustChange') AS IsMustChange
,LOGINPROPERTY (SL.name, 'IsLocked') AS IsLocked
,LOGINPROPERTY (SL.name, 'LockoutTime') AS LockoutTime
,LOGINPROPERTY (SL.name, 'BadPasswordCount') AS BadPasswordCount
,LOGINPROPERTY (SL.name, 'BadPasswordTime') AS BadPasswordTime
,LOGINPROPERTY (SL.name, 'HistoryLength') AS HistoryLength
WHERE is_expiration_checked = 1
ORDER BY LOGINPROPERTY (SL.name, 'PasswordLastSetTime') DESC
********************************************************************************************
SQL, SQL DATABASE, SQL BACKUP, RESTORE, RECOVERY, USERS, LOGINS, AGENT, SQL JOBS, SQL ARCHITECTURE, SQL INSTANCE, SQL UPGRADE, SQL PATCHING, SQL PERFORMANCE, SQL MANITINEMANC, SQL SLOWNESS, SQL HARDWARE, SQL LIFE CYCLE, SQL DR, SQL MIRRORING, SQL REPLICATION SQL ALWAYS ON, SQL LOGSHIPING, SQL CLUSTERING, SQL INSTALLATION, SQL MIGRATION, SQL TO AZURE,CLOUDE,AZURE,AMAZON,GOOGLE, SQL TO AWS,AWS,SQL MIGRATION TO CLOUDE,AZURE FUNDAMENTAL, AZURE CERTIFICATION, AZURE ARCHITECTURE, SQL ON LINUX, SQL LINIX INSTALLATION, SQL PERFORMANCE QUERY, SQL BLOCKING,SQL DEADLOCK,SQL DATABASE CRASHED, SQL DATABASE DOWN,SQL SERVICES , SQL SERVICES STOP, SQL INSTALLATION FAILED, SQL UPGRADE FAILED,
#sqlserver #sqlserverdba #techandart
Комментарии