Importing data from external databases
You can import data into Quattro Pro from an external database, including data from a ODBC data source.
You can also link to external database tables. Database tables contain data extracted from a database, arranged in a specified sequence. Tables are useful when a database contains a large amount of data and you need to work with only a portion of it.
In addition, you can open .db or .dbf files directly in Quattro Pro and edit them as if they were spreadsheets, as long as they do not contain index or memo files.
When importing data from external databases, you have several options for displaying data. You can display duplicate rows of information in the data you import. For example, if the imported data lists all customers who have ordered books, any customers who have ordered more than one book can be listed on a new row for each book. In addition, you can include field names as column headings in the first row of data you import.
You can also join external database tables. When using more than one table, you must join common fields in the tables, even if they have different field names, to avoid duplicating their records in the data you import. For example, if two tables contain the same customer identification field, you must use the customer identification field to join the tables.
Because external databases can contain a large amount of information, it is useful to filter the amount of information that you import, retrieving only the portions of data you want. For example, you can list only those customers who have ordered a particular book so that you can send them a letter announcing the sequel.
Once the external database content is imported in Quattro Pro, you can modify the import settings and re-import the content. In addition, when changes are made in the source data, the changes are reflected in the linked table only when you reopen or refresh it. For more information about refreshing date, see “Refreshing data from external databases.” You can also delete the imported content, including the import settings that you specified.
You can open password-protected tables. For security, as you type the password, the pound symbol (#) represents the characters you type.
To import data from an external database |
1.
|
|
Click Insert External data Import data New.
|
2.
|
|
From the Data type list box, choose a type of data to import.
|
3.
|
|
Do one of the following:
|
•
|
Choose a database from the Database list.
|
•
|
In the Database path box, type the path where the database table is stored.
|
4.
|
|
Click Next.
|
5.
|
|
In the Select tables dialog box, enable the check boxes next to the database tables you want to import.
|
6.
|
|
Click Next.
|
7.
|
|
In the Set criteria dialog box, select the fields to import.
|
8.
|
|
Click to add the fields to the Selected fields list.
|
9.
|
|
In the Destination box, type a destination for the import results.
|
10.
|
|
Click the Finish button.
|
•
|
|
You can refresh the data by clicking Insert External data Import data Refresh.
|
To link to an external database table |
1.
|
|
Click Insert External data Table link.
|
2.
|
|
In the Cells box, select the cells using the Range picker .
|
3.
|
|
In the Table box, select the database file using the Browse button.
|
•
|
|
You can also link to external database tables by clicking the Table link button on the Data manipulation toolbar.
|
To insert an external database into Quattro Pro |
1.
|
|
Click File Open.
|
2.
|
|
Choose the drive and folder where the file is stored.
|
3.
|
|
Choose the filename extension from the File type list box.
|
4.
|
|
Double-click the filename.
|
•
|
|
If the external database file has more than 1,000,000 records, close the file when you are done, but do not save it. If you save the file, records that are not displayed are lost.
|
•
|
|
You can also insert external databases by clicking Insert External data Import database.
|
To set import options for external databases |
1.
|
|
Click Insert External data Import data Edit.
|
2.
|
|
Click Options.
|
3.
|
|
In the Import options dialog box, enable any of the following check boxes:
|
•
|
Allow duplicate rows — displays duplicate rows of information in the data you import
|
•
|
Include column headings — displays field names as column headings in the first row of data you import
|
•
|
Keep query definition — maintains the parameters you specify the next time you import tables from external databases
|
•
|
|
The database must be imported before carrying out this procedure. For more information, see “To import data from an external database.”
|
To join external database tables |
1.
|
|
Click Insert External data Import data Edit.
|
2.
|
|
Choose the database tables to join.
|
3.
|
|
Click Query properties.
|
4.
|
|
In the Query properties dialog box, click the Joins tab.
|
5.
|
|
Choose a field from the first Field list.
|
6.
|
|
Choose the corresponding field from the second Field list.
|
7.
|
|
Choose the equal sign from the Operator list.
|
8.
|
|
Click OK.
|
9.
|
|
Click Finish.
|
•
|
|
The database must be imported before carrying out this procedure. For more information, see “To import data from an external database.”
|
•
|
|
You can join more than two tables by clicking And in the Query properties dialog box.
|
To filter an external database |
1.
|
|
Click Insert External data Import data Edit.
|
2.
|
|
Click Query properties.
|
3.
|
|
In the Query properties dialog box, click the Filters tab.
|
4.
|
|
Choose a field to filter from the Criteria field list.
|
5.
|
|
Choose an operator from the Operator list.
|
6.
|
|
Enable the List values check box.
|
7.
|
|
Choose a value from the Value list or type a value of your own.
|
8.
|
|
Click OK.
|
9.
|
|
Click Finish.
|
To modify the external database import settings |
•
|
|
Click Insert External data Import data Edit.
|
To delete imported database content and settings |
•
|
|
Click Insert External data Import data Delete.
|
To open a password-protected table |
1.
|
|
Click File Open.
|
2.
|
|
Choose the drive and folder where the file is stored.
|
3.
|
|
Choose the filename extension from the File type list box.
|
4.
|
|
Double-click the filename.
|
5.
|
|
In the Password dialog box, type the password for the table.
|
6.
|
|
Click one of the following buttons:
|
•
|
Add — stores the password in memory, so that if other tables you want to query require the same password, you can open them without retyping the password
|
•
|
Remove — releases the password from memory, so that if any table you want to query requires the password, you must retype the password to open it
|
•
|
Remove all — deletes all passwords from memory, so that you must type a password for any protected table you want to query
|
•
|
|
When you open a password-protected database table the password for the table is discarded when you close the file.
|