立即与支持人员聊天
与支持团队交流

Toad Data Point 6.4 - User Guide

Introduction Connect Understand Query Report Automate How to configure Toad to use Auth for sending SMTP Emails

Publishing from Excel / Local Storage

Data originating from an Excel file, Local Storage, or an Access database can be published to Toad Intelligence Central (TIC), but only as a dataset because these data sources are unmappable.

To publish from an unmappable data source to Intelligence Central

  1. Launch the Publish to Intelligence Central dialog. See Publish to Toad Intelligence Central for more information.
  2. In the Publish Type field, Dataset is the only option available.
  3. Specify the remaining publishing options.
  4. When finished, click Publish to publish the data as a new dataset in TIC.

Publishing a Cross-Connection Query Containing an Unmappable Data Source

You can publish a cross-connection query that includes a connection to an Excel file, Local Storage, or an Access database. The data from the cross-connection query is published as a data object in TIC. In addition, the data from the Excel file, Local Storage, or Access database is published separately to TIC as a new dataset, and is used by the main published object.

Data in the Dataset Is Static

The main object in TIC does not contain a link to the original Excel file, Local Storage database, or Access database. If data changes in one of these original sources, the change is not reflected in either the main object in TIC or in the dataset in TIC.

Dataset Sharing/Visibility

The same sharing options you specify for the main object are applied to the dataset.

Note: If all connections in the cross-connection query are from Excel, Local Storage, or Access, then the data is published as a dataset only.

  

Related Topics

Troubleshooting

Use this section to troubleshoot publishing errors.

To troubleshoot issues when publishing an Automation script, see Troubleshoot Scripts on Intelligence Central.

Issue or Error Message Solution or Workaround
Google Analytics or Salesforce - expired access/refresh token

Error Msg: "Invalid data source definition: 400 Bad Request: Invalid_grant (expired access/refresh token)"

This error may occur if the connection's authentication token is expired.

Solution: In the Publishing dialog, click the Authentication link, then click Reauthorize to re-enter your credentials and grant access to Toad.

"Data source name not found" error msg when using ODBC connectivity

Error Msg: "Invalid data source definition: Data source name not found and no default driver specified"

Solution 1: TIC uses only System DSNs. Make sure that you have specified a System DSN and not a User DSN.

Solution 2: The DSN on the TIC server must match the DSN you are using. Ensure that the DSN installed on the TIC server is the same as the one you are using to publish.

Note: This only applies when the connection you are publishing from uses ODBC connectivity.

missing MySQL ODBC driver on TIC

You are missing the MySQL ODBC driver. You can download the driver from the following site: http://dev.mysql.com/downloads.

Use MySQL ODBC driver versions 3.51 or 5.0.

missing Teradata ODBC driver on TIC

You are missing the Teradata ODBC driver. You can download the driver from the following site: http://www.teradata.com.

In addition to the Teradata ODBC driver, you must also install the Teradata .Net Provider.

missing driver on TIC

The Intelligence Central server you are publishing to is missing the matching ODBC driver. Install the required ODBC driver listed in the error message, or contact the administrator responsible for the Intelligence Central server.

You might also want to specify an ODBC driver to use when publishing from this database type to this particular TIC server.

To specify an ODBC driver

  1. In the Navigation Manager, right-click the Intelligence Central connection and select Properties.
  2. Select the Advanced tab and then select an ODBC driver (from the drop-down list) to use for that database type.

Note: Specify an ODBC driver to use only if you are having difficulty publishing from that particular database to the TIC instance.

General problems publishing from an Oracle connection

General issue: The Microsoft-supplied ODBC driver for Oracle is included in a standard Windows install and has limited functionality. To insure that the TIC server is using the Oracle ODBC driver instead of the Microsoft-supplied driver, you can specify a driver to use when publishing to that TIC instance.

Suggestion: Specify driver to use when publishing.

  1. Right-click the TIC connection in the Navigation Manager and select Properties.
  2. Select the Advanced tab. Open the drop-down list next to Oracle and select the Oracle ODBC driver.
ORA: 1242

General issue: The TIC TNS names file may have a data service name that does not match the name in the TNS names file on the publishing workstation.

Suggestion: Modify one of the files to ensure the names match.

"The ODBC driver does not support the data type."

The Oracle ODBC driver does not support subtracting from TIMESTAMP. This is a known Oracle ODBC issue. If attempting to publish SQL such as the following:

Select Date_Col, Timestamp_Col - sysdate from Table

remove "Timestamp_Col - sysdate."

"Out of sort memory" error

Error Msg: "Out of sort memory, consider increasing server sort buffer size."

This error might be encountered when attempting to publish a query or when querying a published snapshot/view containing a GROUP BY or ORDER BY clause.

Solution 1: Add “ORDER BY NULL” to the end of the query.

Solution 2: Increase the value of the sort_buffer_size variable by adding "sort_buffer_size=2M" to the Intelligence Central configuration file found here:

C:\Program Files\Quest Software\Toad Intelligence Central\datahub.cnf

Columns with the same name

Error Msg: "Duplicate column name '<column name>'. Add a differentiating column alias."

Your query includes two columns with the same name and the columns do not have unique aliases.

Solution: Add unique alias names for the columns.

"Incorrect key file" error msg

Error Msg: "Incorrect key file for table 'C:\WINDOWS\TEMP\<myi file name>'; try to repair it."

Solution: The server is low on disk space. Increase available disk space.

Specified key was too long

Error Msg: "Specified key was too long; max key length is 1000 bytes"

This error may occur if you selected columns to index on the Indexing Options tab (applies to snapshots and datasets only). There is a limitation in the TIC database: The maximum index size (key length) is 1000 bytes.

  

Related Topics

Report

Tutorial: Create a Toad Data Report

Use the Data Report Designer to design reports visually. Stored in .tdr files, data reports are "live" reports that can be refreshed dynamically. What makes them dynamic is that they contain the underlying queries for report data sets. Each time a data report is opened, its query runs and the latest data is retrieved. The dynamic nature of data reports makes them ideal for distribution to users who need to see changes to data without waiting for scheduled updates or for new reports to be distributed.

The process of creating a data report has the following steps:

Note: This procedure does not cover all of the possible steps of creating a data report. It only covers the steps required to create a report for the scenario. See About Designing Toad Data Reports for more information.

Scenario

Your company wants to improve its global sales, starting with countries where it has a customer base but averages low sales. You created a query that displays countries with less than $500,000 in sales per fiscal year, but now you need to create a report to help represent and evaluate the results. The data should be grouped per country and show the total and average sales for each country. In addition, you want the report to look similar to the rest of the company's documents, which use specific colors and fonts.

Note: This scenario uses the data generated in Visually Build a Query.

Step 1: Run the Toad Data Report Wizard

The Toad Data Report wizard creates an initial layout of the report based on options you select, including what columns to include, whether to group data, and the basic style.

To run the wizard

  1. Right-click the data grid in the Results tab and select Send To | Data Report Designer. The Toad Report Designer displays.
  2. Select Standard Report and click Next.
  3. Click to include all columns in the report and click Next.
  4. Select COUNTRY_NAME and click , and then click Next. This groups the data by the country name so that each country is listed as a heading and its sales per year display below it.

    Tip: You can create a secondary group by selecting another column and clicking again. A secondary group is not appropriate for this scenario, but it would be if the data included regions in each country or fiscal quarters. You would need to make the region or fiscal quarter a secondary group for the data to be organized appropriately.

  5. Select the Sum and Avg checkboxes for the SUM(SALES.AMOUNT) row, and then click Next. These options calculate the sum and average sales amount for each country.
  6. Select Outline 1 and click Next.

    Tip: The Outline and Align Left options are good choices if you grouped the data.

  7. Select Casual and click Next.
  8. Enter Countries with Sales Less Than $500,000 in the Report Title field, and then click Finish. The initial report layout displays in the Report window with the information grouped under bands. See Add Report Bands for more information for more information about bands.
  9. Click Preview to see what the report looks like in print. Previewing the report makes it easier to see how the bands and their content display in the printable report.

Step 2: Update Fields

You can move, rename, and update the category of a field.

To update the fields

  1. Complete the following steps to update the field category:
    1. Select the FISCAL_YEAR field in detailBand1.
    2. Click directly above the field.

    3. Click by the Format String field.
    4. Clear the Prefix field and click OK.
  2. Double-click the following fields and enter their new name:

    Field

    Band

    Name

    FISCAL YEAR groupHeaderBand2 Fiscal Year
    SUM(SALES.AMOUNT_SOLD) groupHeaderBand2 Sales Amount
    Avg groupFooterBand1 Average
  3. Select the following fields one at a time and make them wide enough to see the full text: Sum (groupFooterBand1), Average (groupFooterBand1), and Grand Total (reportFooterBand1).
  4. Select the following fields one at a time and drag them to the one inch mark on the ruler: Sum, Average, and Grand Total.
  5. Right-click the COUNTRY NAME field (not the COUNTRY_NAME field on the right) in groupHeaderBand1 and select Delete.

    Note: The COUNTRY NAME field is a label that precedes the COUNTRY_NAME field value. If you preview the report before you delete the COUNTRY NAME field, the country displays as 'COUNTRY NAME Argentina'. It is clear that Argentina is the country name, so this field is redundant.

  6. Select the COUNTRY_NAME field and drag it to align with the report title.
  7. Select the COUNTRY_NAME field and make it three inches wide to accommodate long country names.

Step 3: Use Styles to Format the Report Appearance

The Data Report Designer uses styles to format different objects and kinds of data. Once you define a style, you can apply it to similar fields to create a consistent and easy-to-update design.

To create, update, and apply styles

  1. Complete the following steps to update the report title style:
    1. Select the Styles field in the Properties pane.
    2. Click . The Styles Editor window displays.
    3. Select Title.
    4. Select the Foreground Color field, and then select MidnightBlue in the Web tab.

      Note: All colors in this scenario are from the Web tab.

    5. Select the Font field and click . The Font window displays.
    6. Select 22 in the Size field and click OK.
  2. Complete the following steps in the Styles Editor window to create and define four new styles:
    1. Click four times in the Styles Editor window to create four new styles.
    2. Set the following properties for the new styles:

      First Style

      Properties

      Name

      OddRow

      Background Color

      WhiteSmoke

      Border Color

      MidnightBlue

      Borders

      Bottom

      Font

      Tahoma, 10pt

      Second Style

      Properties

      Name

      EvenRow

      Border Color

      MidnightBlue

      Borders

      Bottom

      Font

      Tahoma, 10pt

      Third Style

      Properties

      Name

      TableHeading

      Background Color

      MidnightBlue

      Font

      Tahoma, 10pt, bold

      Foreground Color

      White

      Fourth Style

      Properties

      Name

      CountryName

      Font

      Tahoma, 14pt, bold

      Foreground Color

      Black
  3. Complete the following steps to apply the new styles:
    1. Expand the Styles field in the Properties pane.
    2. Select TableHeading in the Style field (under Styles) for the Fiscal Year and Sales Amount fields in groupHeaderBand2.

    3. Set the following fields for [FISCAL_YEAR] and [SUM(SALES.AMOUNT_SOLD)] in detailBand1:

      Field

      Property

      Even Style EvenRow
      Odd Style OddRow
    4. Select the COUNTRY_NAME field in groupHeaderBand1 and then select CountryName in the Style field.

Step 4: Update Bands and Add Controls

Bands group the information layout in the report and you can add controls to include additional tables, images, fields, and other items in the report. See Add Controls for more information about controls. For the scenario, you will expand bands, delete a band, and add a control.

  1. Right-click pageHeaderBand1 and select Delete.
  2. Complete the following steps to add a line under the report title:
    1. Select the groupHeaderBand1 and move it down half an inch.

      Tip: It is helpful to expand a band before adding controls to give you plenty of room in which to work.

    2. Drag Line from the Toolbox into reportHeaderBand1.
    3. Expand it to the width of the page.
    4. Drag and position it directly below the report title.
    5. Enter 2 in the Line Width field in the Properties pane.
  3. Select reportFooterBand1 and drag it down half an inch. This adds white space between the country information.ClosedClick here to see the Data Report Designer layout.
  4. Click Preview. ClosedClick here to see the report preview.
  5. To save the report, right-click the Data Report Designer tab and select Save File.

相关文档
Toad Data Point - 6.4
Installation Guide
Release Notes
User Guide
Showing 1 to 3 of 3 rows

The document was helpful.

选择评级

I easily found the information I needed.

选择评级