DataLinks:
USER GUIDE


Using DataLinks and the Excel Business Wizards

DataLinks allows you to generate custom reports on the fly from all your data sources, using drag and drop tools to build the information you need into a report. By directly linking your database(s) to a reporting tool like Excel, you can create up-to-the-minute reports for your business needs without rerunning database queries.

Once you’ve generated a report, the data in it is “live” if desired. You can also create “non refreshable” reports if desired. This means that when the database is updated, you can refresh the report or distribute reports that are a snapshot. You can also make the report refresh automatically each time you open it.

DataLinks supports all data types in its generic category but supports extended report generation from the following data sources:
Normally, you’ll generate the report in an Excel spreadsheet, where you can manipulate the data further, create graphics, and print. You can also generate the report in XML or CSV, which allows you to manipulate the data with other third-party tools.

Using DataLinks is very simple. There are two configuration steps – you’ll only need to perform the first step once per user and the second step once per data source.
  1. Configure your user preferences.
  2. Configure the data source from which you’ll extract information.
There are three steps to creating reports:

Start DataLinks or Excel

Start DataLinks by selecting it from the Windows Start menu. You’ll see the following screen:
Opening screen
The panes you see have the following functions:

Configure User Preferences

To begin using DataLinks, you must first set up user preferences. Since DataLinks uses a peruser authentication scheme, the preferences you set will be applicable for you only. To set up user preferences, select Tools, then Options from the menu bar at the top of the screen. The following screen will be displayed:
Options window
A screen displays, asking you to select a connection timeout, which specifies to the application how long you wish it to wait for a connection to the data source before giving up.

This screen also has a place for you to specify a maximum number of rows to a query. This can minimize performance problems when too many people query the database at once.
  1. Use the up and down arrows to specify the number of seconds you want the application to wait.
  2. Use the up and down arrows to specify the number of rows allowed to be returned by a query.
  3. Press the Apply button to save the user preferences.
You can also set your preference for error display and for column descriptions from the database.

Configure Data Source

To configure a data source, select Tools, then Configure Data Source from the menu bar at the top of the screen. A screen similar to the one below will appear.
Configure the data source
To configure the data source, follow the steps below:
  1. Type in a Friendly name of your choice. This is a name for you to simply identify the data source.
  2. Select the type of database that will be used to create the connection.
  3. SelectNext button
  4. Select “Use the Data Link wizard to generate a Connection String”.
  5. SelectNext button
  6. Select “Launch Data Link wizard”
  7. Type in the fields that are available in the window that will become activated – it will be a screen similar to the following:
    Connection properties
  8. Type in the Server Name under number 1. This is the name of the database server machine in your network. (If you do not know the name of your database server, contact your IT department for this information.) The Database list box for databases available on the Server will be populated.
  9. For SQL Server, if you want Windows to use its authentication methods to make it possible for you to log into the server, check the box and enter your Windows Username and Password. (For other server types, the Windows NT Integrated Security checkbox may not appear.)
  10. Select the specific database you want to query by name from the drop-down list. Press the Test Connection button to verify you have created the connection successfully. Then press the OK button to return to the configuration window.
  11. Select Finish and your data source is configured and available for use through the DataLinks.

    OR

  12. You may also supply a connection string to connect to the database, but it’s likely that only more technical users will performs this task. (If you supply the connection, you can test the string by pressing the Test Connection button.) Simply select Finish once you have completed your connection string.
  13. Select Finish and your data source is configured and available for use through the DataLinks.

Build a Query

The heart of what DataLinks can do for you is in the process of generating a report from specific queries that you make from a data source. Each query is a live connection to the database (if a refreshable report is the desired output). This means that whenever you open a report, the data refreshes on demand. If a report is already open, you can refresh directly too. You can build queries in two ways: To save a query, press the Save icon on the menu toolbar, type in a name, and press OK.

To open a saved query, press the Open Folder icon on the menu toolbar, select the query you want to open, and press OK. This will flush whatever data is already in the Selection pane and populate it with the new query.

You can use Criteria to constrain the query. Drag queries into the Criteria pane and set the filters using the available selection fields.

Run a Query

You run a query by pressing the “Preview Query Results” iconPreview buttonon the menu toolbar. This populates the Preview panes, where you can go to look at the data in Excel table form or in XML.

Preview Query Results

Once you’ve built your set of queries, you can preview the results.

To preview the query results in Excel: To preview the report in XML:

Generate a Report

If you generate the report in Excel, the final output of the DataLinks application is an actual Excel spreadsheet that uses either query or pivot tables.

You can also choose to generate the report in XML, so that you can use the XML to manipulate the data with other tools. (Unless you are an XML expert, we suggest you don’t attempt to use the XML report without consulting someone who is.) The same is true for CSV.

To generate the report in Excel: You’ll be prompted by a dialogue box that asks you to set the options for your export to Excel.
Export query
Excel Table Type options: Export Options:
The Use Report Wizard to build worksheet option is used when assistance is needed for formatting the output of the resulting report.
The Build Refreshable Data Table option is used when a live link in the destination data set is desired.

Destination Excel Workbook options:
The Destination Excel Workbook option is used for selecting the workbook that your data set to be exported to.

After you have selected your desired options, press Export Query Results. The desired query table report or pivot table report will land where your active cursor is placed.

Exit DataLinks

You exit DataLinks by selecting File, then Exit from the main menu toolbar. You can also close the application using the X in the upper right corner.

Your Excel reports will be saved through the normal Excel file save process. Although the database connections will be severed once the reports are closed, when you reopen the report, the connection will be re-established and the data refreshed.