Creates a new login policy by copying an existing one.
Syntax 1
call sp_iqcopyloginpolicy (‘existing-policy-name’, ‘new-policy-name’ )
Syntax 2
sp_iqcopyloginpolicy ‘existing-policy-name’, ‘new-policy-name’
Parameters
- existing-policy-name – The login policy to copy.
- new-policy-name – Name of the new login policy to create
(CHAR(128)).
Privileges
You must have EXECUTE privilege on the
system procedure, as well as the MANAGE ANY LOGIN POLICY system privilege.
Example
Creates a new login policy named lockeduser by
copying the login policy option values from the
existing login policy named root:
call sp_iqcopyloginpolicy ('root','lockeduser')