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”.