Use these steps to create or update a configuration file that includes entries to one or more datastores.
<datastores> </datastores>
<server name=$(env-name) type="sqlserver" access="odbc"/>
For example, for a local Microsoft SQL Server instance:
<datastores> <server name="(local)" type="sqlserver" access="odbc"> </server> </datastores>
Next you need to specify the databases within the instance.
<datastores>
<server name="(local)" type="sqlserver" access="odbc">
<dsn name="<data-source>" type="database" dbname="master"/>
</server>
</datastores>
| option | description |
|---|---|
| all | All optimizations applied, as if +<opt> had been specified for each available option. You can then selectively disable certain options using -<opt>. |
| none | No optimizations applied. |
| {+|-}oiseq | Enables (+) or disables (-) optimizations for line-sequential files opened for input. |
| {+|-}ooseq | Enables (+) or disables (-) optimizations for line-sequential files opened for output. |
| {+|-}oi | Enables (+) or disables (-) optimizations for ESDS, KSDS, and RRDS files opened for input. |
| {+|-}oo | Enables (+) or disables (-) optimizations for ESDS, KSDS, and RRDS files opened for output. |
<datastores>
<server name="(local)" type="sqlserver" access="odbc">
<dsn name=<data-source> type="database" dbname="master" userid=<user> password=<pass>/>
<dsn name=<data-source> type="datastore" dsname=<name> optio=<opt> userid=<user> password=<pass>/>
</server>
</datastores>
The following is an example of a configuration file that contains two datastores, a region database and a cross-region database. The MSSQL server instance is also configured for Windows authentication, hence the omission of the userid and password attributes.
<datastores>
<server name="(local)" type="sqlserver" access="odbc">
<dsn name="SS.MYMASTER" type="database" dbname="master"/>
<dsn name="SS.VSAM" type="datastore" dsname="VSAM"/>
<dsn name="SS.SEQ" type="datastore" dsname="SEQ" optio="all -ooseq"/>
<dsn name="SS.CAS.ESDEMO" type="region.cas" region="ESDEMO" feature="all"/>
<dsn name="SS.CROSSREGION" type="crossregion.cas"/>
</server>
</datastores>
Next, you must use the dbfhdeploy command line utility to create the datastore and add files to it.