Working with Data in SQL Server Reporting Services

The ODBC Driver enables you to create a Reporting Services project based around data.

The ODBC Driver is available to download from the Easysoft web site:

  1. Download the Windows ODBC Driver. (Registration required.)
  2. Install and license the ODBC Driver on the machine where SQL Server is installed.

    For installation instructions, see the ODBC Driver documentation.

Before you can use the ODBC Driver to connect SQL Server to, you need to configure an ODBC data source. An ODBC data source stores the connection details for the target database (e.g. and the ODBC driver that is required to connect to it (e.g. the ODBC driver).

The example report uses a parameterised query so the data in the result set can be altered by adjusting the parameter values.

  1. In Visual Studio, choose File > New Project.
  2. Choose Templates > Business Intelligence > Reporting Services > Report Server Project.
  3. Choose Project > Add New Item > Dataset.
  4. When prompted to Choose a data source and create a query, choose New.
  5. When prompted to Change name, type and connection options, choose ODBC and then choose Edit to add a Salesforce data source configured in the 32-bit ODBC Administrator (%WINDIR%\SysWOW64\odbcad32.exe), or paste a connection string in the space provided.
    • To create a ODBC Driver data source:
      1. Do one of the following:
        • To create a User data source, in the User DSN tab, choose Add.

          Important This will only succeed if the SQL Server instance is running under the same user account as the one used to create the data source. Otherwise, you must create a System ODBC data source instead.


        • To create a System data source, choose the System DSN tab, and then choose Add.
      2. In the Create New Data Source dialog box, choose Easysoft ODBC-Salesforce Driver, and then choose Finish.
      3. Complete the Easysoft ODBC-Salesforce Driver DSN Setup dialog box:
        Setting Value
        User Name The name of your user. For example,
        Password The password for your user.
        Token The security token for your 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 LOGIN_MUST_USE_SECURITY_TOKEN, you need to supply one. emails the security token to the email address associated with your user account. If you have not received a security token, you can regenerate it. will then email the new security token to you. To regenerate your security token, log in to and then choose Setup from the user menu. Search for "security token" in the Quick Find box. Click 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.

      4. Use the Test button to verify that you can successfully connect to


    • Enter a connection string in this format:
      DRIVER={Easysoft Salesforce ODBC Driver};;
  6. When prompted to Choose a data source and create a query, type the query in the Query box. Use ? instead of named parameters. For example:
    select id, name from quote where createddate = ?
  7. In the left pane, choose Parameters and set appropriate values. For our simple example, I set the Data Type to Date/Time and the Default Value to 2016-02-22 09:44:32.
  8. Choose OK.
  9. In the Solution Explorer, right-click Reports, and then choose Add > New Item.
  10. Choose Report when prompted and then choose Add.
  11. In the Report Data Pane, right-click Datasets, and then choose the newly created Dataset when prompted.
  12. In Design view, populate the report by dragging fields from the left pane to the blank report. In our example, the fields were:
    Datasets > DataSet1 > Id
    Datasets > DataSet1 > Name
  13. Choose Preview to view the data.