an ODBC driver?
IBM SPSS (which originally stood for Statistical Package for the Social Sciences) is an analytics package that can take data from multiple sources and use it to generate reports, charts, and plots of distributions and trends. One of the ways of getting data into SPSS is from a database, and primarily, SPSS relies on ODBC to do this. ODBC is data access interface which uses database-specific components called ODBC drivers to connect to and work with data.
To illustrate the process, the following steps show how to work with Salesforce and MongoDB data in IBM SPSS by using an Easysoft ODBC driver for these products.
The components necessary to connect IBM SPSS to Salesforce are:
IBM SPSS <-> Salesforce ODBC driver <-> Salesforce
The components necessary to connect IBM SPSS to MongoDB are:
IBM SPSS <-> MongoDB ODBC driver <-> MongoDB
The Salesforce ODBC driver and MongoDB ODBC driver are available to download from the Easysoft web site.
For installation instructions, refer to the Salesforce ODBC driver documentation or MongoDB ODBC driver documentation.
Before you can use the Easysoft ODBC driver to connect IBM SPSS to Salesforce or MongoDB, you need to configure a System ODBC data source. An ODBC data source stores the connection details for the target database (for example, Salesforce) and the ODBC driver that is required to connect to it (for example, the Salesforce ODBC driver).
To run ODBC Data Source Administrator, in the Windows Run dialog box, enter this command:
%windir%\system32\odbcad32.exe
Note This command runs the 64-bit version of ODBC Data Source Administrator. As IBM SPSS is a 64-bit application on 64-bit Windows, this is the version you need to use.
Use ODBC Data Source Administrator to create your ODBC driver data source.
| Setting | Value |
|---|---|
| DSN | Salesforce |
| User Name | The name of your Salesforce user. For example, myuser@mydomain.com. |
| Password | The password for your Salesforce user. |
| Token |
The security token for your Salesforce user, if required.
To find out whether you need to supply a security token, choose the Test button. If the connection attempt fails with an error which contains Salesforce emails the security token to the email address associated with your Salesforce user account. If you have not received a security token, you can regenerate it. Salesforce will then email the new security token to you. To regenerate your security token, log in to Salesforce and then choose Setup from the user menu. Search for "security token" in the Quick Find box. Choose Reset Security Token in the Reset Security Token page. When you receive the token in your email client, copy it and then paste it into the Token field. |
| Setting | Value |
|---|---|
| DSN | MongoDB |
| Description | Easysoft MongoDB ODBC driver |
| Server | The name or IP address of the host where your MongoDB instance is running. |
| User Name | If you need to supply a user name to access your MongoDB database, enter it here. |
| Password | The password for your MongoDB user name. |
| Ignore Auth | If MongoDB does not require you to supply a user name and password, enable this option. This is a workaround for applications such as Power BI Desktop that always pass a user name and password on the connection string, regardless of whether it is needed. |
You can now connect IBM SPSS to your database.
The ODBC data is now available to use in your SPSS stream.