Note: We recommend that you use a connection string to connect to Azure databases; that is, using the
connect attribute within the database configuration file, which is covered in
Update the Configuration File for Azure Datastores.
If you did not use connection strings when configuring the database configuration file, use the following steps to create
ODBC data sources to access the datastore databases.
-
Open the ODBC Data Source Administrator.
Tip: On most newer Windows versions, click the Start Menu button, type
ODBC, and then select the appropriate desktop app.
-
On the
ODBC Data Source Administrator dialog box, select the
System DSN tab.
-
Add the mandatory data sources:
Note: In order to create or query databases, you must have an active data source connection to the
master database (the primary configuration database supplied with Azure). If this data source already exists, you can skip this
step.
-
Click
Add.
-
Select the appropriate ODBC driver for your database (for example,
ODBC 17 for SQL Server is a common one for Azure SQL), and click
Finish.
Note: The bitism of your driver must match the bitism of the application that will use it.
The
Create New Data Source... wizard appears.
-
Enter a name and description for the data source, and the name of the server on which the database will reside.
The data source name should be the name as specified by
dsn:<name> when updating the database configuration file for this database.
-
Click
Next twice.
-
Select the
Change the default database to: option, and enter
master.
-
Click
Next, and then click
Finish.
An overview of the data source details is displayed.
-
Click
Test Data Source.
The connection should be successful; if not, it indicates that you have a problem with your Microsoft SQL Server installation,
and should consult the vendor instructions to troubleshoot before proceeding any further.
-
Click
OK twice.
-
Add a new data source for each required datastore:
-
Click
Add.
-
Select the appropriate ODBC driver for your database (for example,
ODBC 17 for SQL Server is a common one for Azure SQL), and click
Finish.
Note: The bitism of your driver must match the bitism of the application that will use it.
The
Create New Data Source... wizard appears.
-
Enter a name and description for the data source, and the name of the server on which the database will reside.
The data source name should be the name as specified by
dsn:<name> when updating the database configuration file for this datastore.
-
Click
Next twice.
-
Select the
Change the default database to: option, and if your datastore is to be housed in a single physical database containing other datastores/region databases,
enter the name of that database as specified by
-db|existdb:<db-name> when updating the database configuration file, or if the datastore is to be housed in its own database, enter the name of
the database as specified by
-name:<dsname> when updating the database configuration file.
-
Click
Next, and then click
Finish.
An overview of the data source details is displayed.
-
Click
Test Data Source.
The connection should be successful; if not, it indicates that you have a problem with your Microsoft SQL Server installation,
and should consult the vendor instructions to troubleshoot before proceeding any further.
-
Click
OK.
The ODBC Data Source Administrator appears again.
-
Repeat these sub-steps for each additional datastore you require.
-
Click
OK.
The data sources for the datastore databases are configured. You can now start to upload data files to them using the
dbfhdeploy command line utility.