Skip to main content

ALTER LOGIN SET

Updates the configuration of the specified login. For more information, see Managing logins.

Syntax

Parameters

Example

This command will link the network policy β€œmy_network_policy” to the β€œalexs@acme.com” login.

ALTER LOGIN RENAME TO

Renames a login.
A login that was created using single sign-on (SSO) cannot be renamed.

Syntax

Parameters

Example

The following command will rename the β€œalexs@acme.com” login to β€œalexspotter@acme.com”.

ALTER LOGIN OWNER TO

Changes the owner of a login. You can view the current owner in the login_owner column of the information_schema.logins view. For more information, see ownership.

Syntax

Parameters

Example

The following command will set login β€œbob@acme.com” owner to β€œalice@acme.com”.