IDAX.COPY_MODEL - Duplicate a model
Use this stored procedure to duplicate a model, its managed components, and the metadata from the same schema or from another schema. Thus, you can exchange a model with other users within the same database.
The session user is the owner of the copied model.
Prerequisites
- You can copy a model only if the state of the model is Complete.
Authorities
The privileges held by the authorization ID of the statement must include at least one of the following authorities:
- SELECT privilege on the source model
- DATAACCESS authority
Syntax
IDAX.COPY_MODEL(in parameter_string varchar(32672))
Parameter descriptions
- parameter_string
- Mandatory one-string parameter that contains pairs of <parameter>=<value> entries that are separated by a comma.
Returned information
If an error occurs, an exception is raised.
Example
CALL IDAX.COPY_MODEL('model=cc_nb_ewd, copy=cc_nb_ewd_copy');