Solved

Importing a file into the database

Posted on 2004-08-04
4
749 Views
Last Modified: 2013-12-09
I have an excel file that has an extensive list of entries in it. We also just got a program that uses Firebird as its database engine. We have a task of inputing the itmes in the database by the means of the program provided user interface. I was wondering if there is a way to import the excel data I have and if so what are the requirements. I understand there is field formatting requirements that the firebird has.
0
Comment
Question by:armandolo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 19

Accepted Solution

by:
NickUpson earned 63 total points
ID: 11725553
firebird has external tables, which consist of a table definition and a file pointed to by that definition. The file MUST exist before you create the table.

The format of the file is fixed width fields. Usually the best plan is to define all fields as chars
of the appropiate length and then copy into a normal, non-external table with fields that are the correct types (int, char, float,m etc)

The documentation can be downloaded from here

http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_download_documentation

and look for "external table"
0
 
LVL 10

Assisted Solution

by:kacor
kacor earned 62 total points
ID: 11730141
The easiest way to import data from an other data source is to use the Datapump. The InterBase Datapump is a freeware downloadable from home/support page http://www.clevercomponents.com but I don't know whether is possible a direct import data from Excel. If not in this case you can use the Datapump tool of Delphi. To import data from Excel you have to use an ODBC driver. If you'd like to get some more help how to set the ODBC driver please contact us.

wbr

kacor
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Shadow IT is coming out of the shadows as more businesses are choosing cloud-based applications. It is now a multi-cloud world for most organizations. Simultaneously, most businesses have yet to consolidate with one cloud provider or define an offic…
Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question