DataExport
DataExport allows you to export entire databases or segments of databases into a text file and save that text file on the MarketWide host server. You can select specific fields, apply filters, and change the layout of the exported text file. You can also use DataExport in combination with Scheduler to regularly export text files. You can then use OutputManager to transfer the text file to your local client computer.
Topics:
- 1 Getting Started with DataExport
- 2 Creating a New DataExport from MarketWide Main Window
- 3 Editing DataExport Layouts
- 4 Creating a Filter in DataExport
- 5 Specifying Host Server Destination
- 6 Saving DataExport Output
- 7 New Report File versus Saved Report File
- 8 Saving DataExport Reports for Future Use
- 9 Creating a New DataExport from SQLManager
- 10 DataExport Menu and Toolbar
Getting Started with DataExport
The DataExport module includes a new interface to make using DataExport even easier. You can access the Export Data module either from the MarketWide main window or from SQLManager. Below are five simple steps for running DataExport. More detailed steps can be found later in this section.
Simple Steps to Run a DataExport Report
Open DataExport from the MarketWide main window.
Select a database and table with SQLManager, or build a query.
Select your formatting, either delimited, fixed width, XML, or table.
Choose the destination of your text file, save the file, and then save the DataExport report file for later use if you wish.
Indicate if you would like to "Show Expressions" and click Submit. Open the DataExport after processing to download the text file to your local machine if necessary.
You can enter DataExport in two ways:
From the MarketWide main window, choose Tools > Modules > Data Export.
In SQLManager, highlight the databases you want to use and then choose Tools > Data Export, or right click on the database and choose Data Export.
Creating a New DataExport from MarketWide Main Window
When you enter the DataExport module, you first must select either a table or build a query. Make sure that you are creating a new export, and then click the SQLManager button on the toolbar to select the database and table you wish to export. Once a table is selected, the "Current Table" blue text at the bottom of the DataExport dialog will display the name of your table, including server and realm information. If no table has been selected, the Current Table will say nothing.
To Create a New DataExport Report and Text File
Open the DataExport module by clicking the ( ) DataExport button on the MarketWide main window toolbar.
Click on either Choose a Table or Build a Query.
A preview of your table's formatting is now shown in the bottom area of the DataExport dialog. You may change the order of elements of your table with the blue arrows located on the toolbar.
Determine if a filter is needed. If so, click the Filter button on the toolbar to create one.
Next, simply work from left to right through each column at the top. Determine the formatting of the text file under the File Options column. If you would like to use a delimited format, be sure to select the "delimited" button. The default is fixed width . Specify your delimited file options if necessary and move to the next column to the right titled Output.
Here you select the destination for your delimited, fixed width, XML, or Table file. Simply click on the ellipses button to the right of the text field to navigate to the saved location of your choice. Title your new file and click Save.
If you wish to save your DataExport report file for later use or scheduling, go to File > Save, title your report, and click Save.
Click the Submit ( ) button on the toolbar. DataExport will close, and the MarketWide main window will display the file's status.
When the process is completed, double-click the DataExport on the MarketWide main window to view your results and download the text file to your local machine if necessary. To download, click the download button.
Note
Continuing in DataExport without choosing a table will force MarketWide to use the default table as previously selected. You can change the default table by entering SQLManager and double-clicking a table. This table stays as the default even if MarketWide is closed. Even if DataExport says that no table has been selected, the default table will be used. All results from DataExport will be based on the default table.
If you wish to preview your results before saving, click the Preview button in the toolbar.
Editing DataExport Layouts
Once you have chosen the data that you wish to export to a text file, you are able to edit the layout of that text file. You can choose to export data in delimited or fixed width format and the order of the export data from the top portion of the DataExport window.
Delimited – Export data is placed into delimited format, which is recognized by most spreadsheet programs, including Microsoft Excel. If delimited format is chosen, certain other options are available.
Delimiters – Chooses the character that delimits between columns (i.e. comma).
Text Qualifier – Chooses the text qualifier (if any) that will separate text in your exported text file (i.e. quotations).
Field Names as First Row – Creates column headers for the export file based on the field names from your database.
Fixed Width – Export data is placed into fixed width format.
XML - Export data is placed into XML format.
Table - Export data is placed into table format.
File Format - This allows the user to edit specific segments of the DataExport format. This is based on what information you wish to export as previously chosen in QueryBuilder as well as the format you wish to export in (delimited or fixed width).
Source Name - The name of the data field as chosen in QueryBuilder, this value cannot be changed.
Source Type - The type of data in the data field, this value cannot be changed.
Source Size - The length of data values within the field, this value cannot be changed.
Target Name - The title heading as it will appear in the exported text file. By default, this has the same name as the Source Name, but can be changed to whatever the user wishes.
Target Size – The number of characters that will be displayed in the exported text file. This value is, by default, the number of characters of a data value. However, this value can be changed to something other than the default. For example, if a Customer ID is 8 characters long, you can change the Target Size to 4 and only display the first four numbers of the ID. This option is only available in fixed width format, and not in delimited format.
Start – The number of characters in a row when the data will begin to be displayed. This option cannot be changed, but rather is based on Target Size. Changing the Target Size to a larger number will cause the data to be displayed later in the column.
Time Saver
You can click the headings of each heading in the File Format dialog to highlight the entire column. You can then order the table by clicking the Sort Ascending or Sort Descending buttons, or by right-clicking and choosing Sort.
Note
You can use the blue up/down arrows to change the order of the data fields as they will appear in the text file. You can also click on the number of each field and drag them to the order that you wish.
You can add blank filler rows (for readability) by right-clicking in the File Format dialog and choosing Add Row. You can also delete rows by right-clicking and choosing Delete Row.
Creating a Filter in DataExport
While you could export every customer within a database, you might wish to limit your population, and filter out certain people for a more accurate campaign. For example, you might want to only export a list of customers who have spent over $500 dollars and who allow mailing. While it is not necessary to use filters in DataExport, it will allow you to focus your campaign. The filter dialog is identical to others used throughout the MarketWide suite.
Specifying Host Server Destination
There is one final step in DataExport. You can choose to save not only the DataExport text file, but the query file as well. This saves time if there are changes to make to a query. You can also use these files in conjunction with Scheduler, and export the data regularly. For more information on using Scheduler, see the "Scheduler Dialog" portion of this manual.