Create Database
- Last Updated: September 30, 2015
- 1 minute read
- DataDirect Connectors
- ODBC
- MongoDB 8.0
- Documentation
Attribute
CreateDB (CDB)
Purpose
Determines whether the driver creates a the internal files required for a relational view of the native data when establishing a connection.
Valid Values
0 | 2
Behavior
If set to 0 (No), the driver uses the
current group of internal files specified by the Schema Definition connection option. If the
files do not exist, the connection fails.
If set to 2 (NotExist), the driver uses
the current group of files specified by Schema Definition connection option. If the files do
not exist, the driver creates them.
Notes
- The internal files share the same directory as the schem definition's configuration file. This directory is specified by the value you enter for the Schema Definition Connection Option.
- You can refresh the internal files related to an existing relational view of your data in one of two ways. First, you can use the SQL extensions Refresh Map or Reload Map. Refresh Map runs a discover against your native data and updates your internal files accordingly, while Reload Map refreshes the internal files to integrate configuration changes without running a discovery. Second, you can refresh these internal files by launching the DataDirect Schema Tool and opening the corresponding schema definition configuration file. When an existing schema is opened with the Schema Tool, the Schema Tool automatically compares the content of the schema configuration file to a snapshot of the data on the wire. When new native objects are detected, the Schema Tool displays the newly detected objects by highlighting them in a hierarchical view of the native data.
Default
2 (NotExist)