Specifying the number of failed logins allowed

maximum failed logins specifies the maximum number of failed logins that can occur before the login is locked. You specify this value globally. Valid values are:

By default, this value is turned off and this check is not applied to passwords.

To set the number of failed logins allowed, enter:

sp_passwordpolicy 'set', 'maximum failed logins',       number