AutoCreate

When you connect to an nonexistent database, the AutoCreateconnection attribute automatically creates that database.

With AutoCreate set, TimesTen creates the database, but not the path to the database. If you connect to a database that has the AutoCreate attribute set and the database does not exist yet, the database is created automatically if you supplied a valid existing path. If you attempt to connect to a database that does not exist and the AutoCreate attribute is not set, the connection fails.

Also see Overwrite.

Required Privilege

No privilege is required to change the value of this attribute.

Usage in TimesTen Scaleout and TimesTen Classic

This attribute is supported in TimesTen Classic but not supported in TimesTen Scaleout.

Setting

Set AutoCreate as follows:

Where to set the attribute How the attribute is represented Setting

C or Java programs or UNIX and Linux systems odbc.ini file in TimesTen Classic

AutoCreate

0 - Does not create new database if database does not exist.

1 (default) - Creates a new database if the specified database does not exist.

Windows ODBC Data Source Administrator

Not applicable