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="azuresqldb" access="odbc"/>
For example, for a Microsoft Azure SQL database instance:
<datastores> <server name="${VAR2AZDB}" type="azuresqldb" access="odbc"> </server> </datastores>
Next you need to specify the databases within the instance.
<datastores> <server name="${VAR2AZDB}" type="azuresqldb" 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="${VAR2AZDB}" type="azuresqldb" 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 database instance is indicated by the VAR2AZDB variable.
<datastores> <server name="${VAR2AZDB}" type="azuresqldb" access="odbc"> <dsn name="AZ.MYMASTER" type="database" dbname="master" userid="azusr" password="azpwd123"/> <dsn name="AZ.VSAM" type="datastore" dsname="VSAM" userid="azusr" password="azpwd123"/> <dsn name="AZ.SEQ" type="datastore" dsname="SEQ" optio="+ooseq" userid="azusr" password="azpwd123"/> <dsn name="AZ.CAS.ESDEMO" type="region.cas" region="ESDEMO" feature="all" userid="azusr" password="azpwd123"/> <dsn name="AZ.CROSSREGION" type="crossregion.cas" userid="azusr" password="azpwd123"/> </server> </datastores>