Data type depends on requested value.
IsLocked, IsExpired, and IsMustChange are of type int.
-
1 if the login is in the specified state.
-
0 if the login is not in the specified state.
BadPasswordCount is of type int.
BadPasswordTime, HistoryLength, LockoutTime, PasswordLastSetTime are of type datetime.
PasswordHash is of type varbinary.
NULL if the login is not a valid SQL Server login.
DaysUntilExpiration is of type int.
0 if the login is expired or if it will expire on the day when queried.
-1 if the local security policy in Windows never expires the password.
NULL if the CHECK_POLICY or CHECK_EXPIRATION is OFF for a login, or if the operating system does not support the password policy.