Import Data
Go Up to Tools
It is often necessary to import data into database tables from external sources. You may need to bring sample data into a database to establish test case scenarios or import data for use in the real world. Business analysts, for example, often use spreadsheets from outside sources. Putting such data into tables can help them perform detailed queries and make informed decisions based on meaningful data.
The Import Data tool lets you import data from a Microsoft Excel (.xls) file or any SQL data file format in which data values are stored in plain-text form and delimited by tab, semicolon, comma, space, or other user-specified character (such as .sql, .tab, or .csv).
- Note: When you import a text file, the wizard may give the impression of stalling. Press ESC and you should be able to continue without further incident.
To Open the Import Data Wizard:
- Connect to the datasource to which you want to import data and ensure that the datasource is selected. For more information, see Connecting to Datasources.
- On the Tools menu, select Import Data. The Import Data Wizard opens.
- Use the following table as a guide to providing information as you work through the panels of this wizard:
Panel | Setting | Description |
---|---|---|
Data Properties |
Specify the file to be used in this data load operation |
Type the path and name of the file that you want to imprt from or use the browse button to locate and select the file. |
Which table do you want to load data into? |
If working against a Sybase or SQL Server datasource, select the Catalog of tables. Select the Schema that owns the target table. Select the particular Table where you want to import the data. | |
Delimiter |
What character delimited the columns in the data file? |
Choose among Tab, Semicolon, Comma, or Space. Alternatively, select Other and type the specific delimiting character. |
First Row Contains Field Names |
By choosing this, if the first row contains column names, these will be displayed as the first row of the file. You can still change column mappings if you want. If you do not select this, generic Field 1, Field 2,... Field n will indicate column mappings. | |
Column Mapping |
| |
Excel Column Mapping (.xls files only) |
Sheet |
If the file you selected has more than one sheet, identify the worksheet that has the data you want to import. |
Start/End Cell |
Identify the starting and ending cells of data you want to import and click Refresh. Or, accept the default cells. |
- 4. Click Finish.