IDAX.EXPORT_MODEL - Export model
Use this stored procedure to export models so that they can be imported to another database.
Authorization
The privileges held by the authorization ID of the statement must include at least one of the following authorities:
- DATAACCESS authority
- SELECT privilege on all tables within all exported models.Note: To use the acl parameter, the authorization ID of the statement must also have one of the following authorities:
- SECADM
- DBADM
- SQLADM
- ACCESSCTRL
- DATAACCESS
Syntax
IDAX.EXPORT_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
The EXPORT_MODEL procedure returns a result set with the names of all successfully exported models. If the resume parameter is set to true, the result set also includes the name and accompanying error message for all skipped models, except for any models for which the user does not have export privilege.
Examples
- The following example exports all models from the current schema
into /tmp/foo.mdl:
call idax.export_model('directory=/tmp, name=foo') - The following example exports all models from the schema SAMPLE
into /tmp/foo.mdl:
call idax.export_model('schema=sample, directory=/tmp, name=foo') - The following example exports all models from all schemas into /tmp/foo.mdl:
call idax.export_model('all=true, directory=/tmp, name=foo') - The following example exports models M1 and M2 from the current
schema into /tmp/foo.mdl:
call idax.export_model('model=sample.m1;test.m2, directory=/tmp, name=foo') - The following example exports models M1 and M2 from the current
schema into /tmp/foo.mdl:
call idax.export_model('model=m1;m2, directory=/tmp, name=foo') - The following example exports the models SAMPLE.M1 and TEST.M2
into /tmp/foo.mdl:
call idax.export_model('model=sample.m1;test.m2, directory=/tmp, name=foo') - The following example exports model M1 from the current schema
and all models from the current schema where the model name starts
with
T
into /tmp/foo.mdl:call idax.export_model('model=m1, where=modelname like ''T%'', di-rectory=/tmp, name=foo') - The following example exports models from schema SAMPLE where
the model name starts with
T
into /tmp/foo.mdl:call idax.export_model('schema=sample, where=modelname like ''T%'', directory=/tmp, name=foo')