sp_iqmodifylogin procedure

Function

Modifies the maximum number of connections or the password expiration interval for a given user.

Syntax1

call sp_iqmodifylogin ( ‘{loginname | all overrides }’, ‘option’, value )

Syntax2

sp_iqmodifylogin ‘{loginname | all overrides }’, ‘option’, value 

Permissions

DBA authority required.

Usage

loginname Name of the account to be modified. If all overrides is specified, the option and its value apply to all users, except for the user DBA which cannot be set to expire.

option Name of the option to be changed:

See also

“sp_iqmodifyadmin procedure”

Description

sp_iqmodifylogin lets the DBA limit connections or set password expiration for a specified existing user, or for all other users. Changes take effect when Sybase IQ User Administration is enabled with sp_iqmodifyadmin, or immediately if Sybase IQ User Administration is already enabled.

Errors

The following errors may occur. Causes are listed after each error.

Permission denied: You do not have permission to change this password.

Cause: A user without DBA role tried to change another user’s password.

RAISERROR executed: "Userid <loginname not found."

Cause: The user tried to change the password of a user that does not exist.

Examples

The following stored procedure calls set password to expire in 365 days for all users except DBA.

sp_iqmodifylogin 'all overrides', 'password_expiration', 365
call sp_iqmodifylogin ('all overrides', 'password_expiration', 365)