ActiveReports 18 .NET Edition
Report Authors: Designer Components / Data Binding / Data Binding in Section Reports / Connect to a Data Source / ODBC Provider
In This Topic
    ODBC Provider
    In This Topic

    This article explains connecting a Section report to an ODBC data source.

    Note: The ODBC model depends on the installed drivers.

    Connect to an ODBC Data Source

    1. In the designer, select the Data Source icon on the Detail section of the report or click the gray area around the design surface and select the Edit Data Source link in the Properties pane.
    2. In the Report Data Source dialog that appears, select the ODBC tab to connect to an ODBC data source.
      Connect to an ODBC Data Provider
    3. Under the Connection section, enter the connection string to connect to an ODBC data source. The following sample connection string specifies the type of the ODBC Driver along with location of the file required for an ODBC data source connection.
      For example, you can connect to the NWIND.mdb sample data source which can be downloaded from GitHub.
      Driver=Microsoft Access Driver (*.mdb);Dbq=C:\NWIND.mdb;
    4. In the Command Timeout, specify the wait time (in seconds) for a command to execute. The default value is 30 seconds.
    5. On the same page under the Query section, enter a SQL query to retrieve the data from the connected data source. For example,
      SELECT * FROM Orders
    6. Click the OK button to save the changes and close the Report Data Source dialog box.