From a stored procedure
About this task
Use the Database Interface Designer to generate type trees from the parameters of stored procedures.
An example of the Generate Type Trees from Stored Procedures dialog follows, along with a table describing its fields and their descriptions.
Database Name | (Display only) This is the name of the database from which you want to generate a type tree. (This name is automatically inserted based upon your selection in the Navigator.) |
Stored Procedures | This list displays all of the stored procedures
that have been defined in this database. Select one or more from this list.
The list of stored procedures includes stand-alone procedures by default. (Procedures that are parts of a package are not listed.) If you need a procedure that is part of a package (whether this functionality is available is dependent upon your database), you may need to insert it into this list before selecting it. To insert a packaged stored procedure, right-click in the list, select Insert, and type the desired name. Use the following format: schema . package . procedure. |
File name | This field displays a system-generated file name
based upon the database selection in the Navigator. The default value is the database name with a type tree
extension (.mtt) and a default path. To change any of this information, click the browse button. |
Overwrite file | This check box determines whether you want to replace the existing type tree file (MTT) upon saving it. The default value is disabled. |
Override type | This check box determines whether to replace existing types with matching, newly generated types and to add any non-matching new types to the type tree file (MTT). This is useful when you want to add types for additional stored procedures into an existing type tree. The default value is enabled. |
Row group format | This list displays options to determine the row
format in the generated type tree. The default value is Delimited.
|
Delimiter | This is the value for the delimiter to be used when generating this type tree. For a list of available symbols, click the browse button. The Symbols dialog appears, allowing you to select the desired value. The default value is a pipe character (|). |
Terminator | This is the value for the terminator to be used when generating this type tree. For a list of available symbols, click the browse button. The Symbols dialog appears, allowing you to select the desired value. The default value is <CR><LF >. |
Release | This is the value for the release character to be used when generating this type tree. For a list of available symbols, click the browse button. The Symbols dialog appears, allowing you to select the desired value. The default value is an exclamation point (!). |
Override Column Definitions | (For ODBC only) This check box indicates whether
the database driver (with the check box disabled) or a command line override
(with the check box enabled) is used to interpret columns. The default value
is disabled. For more information about this field, see the adapter-specific documentation in each adapter reference guide. |
Generate type trees in 1.4.0 format | (For Oracle adapter only) This check box
determines whether you can generate type trees that are compatible with
Version 1.4.0 maps. You might enable this functionality if you have legacy
1.4.0 maps that you want to maintain for some reason. The default value is
disabled. For more information about this field, refer to adapter-specific documentation in each adapter reference guide. |
Represent date/time columns as text items | This check box determines whether to automatically
format this information in its database-specific date and time format
(enabled) or as a text string (disabled). If you enable this check box (generating date and time as a text string), you may have to use either the TEXTTODATE or TEXTTOTIME function in a map rule to convert the text string to the database-specific date and time format. If you are generating new type trees, make sure this check box is disabled. The default is disabled. Note: Because of adapter-specific differences in date and
time formats, see the adapter-specific instructions in each adapter
reference guide.
|
Treat text item as | This list displays the languages available in which to handle text items. The default value is Western. |
To generate a type tree from a stored procedure:
Procedure
Results
The generated type tree is represented in the Navigator with the stored procedure icon next to the name.