MicroStrategy ONE
Defining DSNs
After you install an ODBC driver, you can define one or more data sources for it. The DSN should provide a unique description of the data, for example, Payroll_Project_Metadata
or Payroll_Warehouse
.
The DSN is the name for a pointer used by a client application (in this case MicroStrategy) to find and connect to a data source. Multiple DSNs can point to the same data source and one DSN can be used by different applications.
You can define a data source connection with a DSN by using:
- The MicroStrategy Connectivity Wizard—configures connectivity to data sources by creating a DSN that uses a MicroStrategy-branded ODBC driver (see Creating a DSN for a data source).
- The Microsoft ODBC Data Source Administrator—creates a DSN for an ODBC driver that is not MicroStrategy-branded (see Managing ODBC and data sources with Microsoft ODBC Data Source Administrator).
- Edit the odbc.ini on Linux. For more information, please see Configuring ODBC Parameters with odbc.ini.
It is strongly recommended you use the MicroStrategy Connectivity Wizard when creating a new DSN for a MicroStrategy-branded ODBC driver. Use the Microsoft ODBC Data Source Administrator only if you intend to use a driver that is not MicroStrategy-branded.
If you create DSNs using the Microsoft ODBC Data Source Administrator, you must create system DSNs. Otherwise, MicroStrategy interfaces will not recognize them.
Creating a DSN for a data source
If a DSN does not already exist in your empty metadata repository or the repository installed with MicroStrategy, you can add or create a new one.
The MicroStrategy Connectivity Wizard is a tool designed specifically to configure connectivity to data sources by creating a DSN that uses a MicroStrategy-branded ODBC driver.
To create a DSN
- On Windows, log in to the system as an administrator.
- From the Start menu, go to Programs > MicroStrategyTools > Connectivity Wizard.
- Click Next.
- Select a database driver with which to create a DSN and click Next.
Only a few databases can contain metadata repositories. For details, refer to the MicroStrategy Readme. Only DSNs created to connect to these databases can be used to connect to metadata repositories.
- Enter the information in the appropriate fields for connecting with the selected database driver. The information to enter varies depending on the database platform that you selected. For more information, see Creating DSNs for Specific Data Sources.
- Click Test.
- Enter the User Name and Password to connect to the database.
- Click Connect. If the test is performed successfully, the connection with the database is established. If the test fails, verify the correct connection information with your database administrator and make any required changes to the information you provided in the previous steps.
- Click Close, and then Finish.
If you already have an existing DSN with the same name as the one you provided, a message box appears. You have the following options:
• | Select Yes to make sure the DSN points to the location you are expecting. This overwrites the existing DSN. |
• | Select No to save the DSN with a different name. |
Repeat the above steps to create as many DSNs as you require. At a minimum, create one for your metadata and one for your warehouse.
Managing ODBC and data sources with Microsoft ODBC Data Source Administrator
The Microsoft ODBC Data Source Administrator manages database drivers and data sources on Windows. The Microsoft ODBC Data Source Administrator utility creates a log with which to trace calls to data sources and to view, create, and edit DSNs. The utility is available from Microsoft and is usually included with the purchase of an ODBC driver.
- It is strongly recommended that you use the Connectivity Wizard when creating a new DSN for a MicroStrategy-branded ODBC Driver. Use the Microsoft ODBC Data Source Administrator only if you intend to use a non-MicroStrategy driver.
- If you choose to create DSNs using the Microsoft ODBC Data Source Administrator, they must be system DSNs. Otherwise, MicroStrategy interfaces cannot recognize them.
To create a DSN using the Microsoft ODBC Data Source Administrator
- Log in to the machine as an administrator. This gives you the ability to create a system-wide DSN, rather than a user-specific DSN.
- In most Windows systems you can access the ODBC Data Source Administrator from the Control Panel. Refer to your third-party Microsoft documentation for steps to access the ODBC Data Source Administrator tool.
- Click the System DSN tab.
To view all the installed ODBC drivers, click the Drivers tab.
- Click Add.
- Select the desired driver and click Finish.
We recommended that you select a MicroStrategy ODBC driver. These drivers, whose names start with MicroStrategy, were installed when you installed the MicroStrategy application on the computer.
- Enter the information in the appropriate fields to create a data source for the selected database driver.
The information to enter varies depending on the database platform that you selected, which is discussed in Creating DSNs for Specific Data Sources.
- Click OK.