Solved

Importing a file into the database

Posted on 2004-08-04
4
744 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
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Compare and update data between two databases 6 58
#deleted rowsc access 2010 backend 4 47
ORA-12560: TNS:protocol adapter error 8 83
SQL BACKUP - 2008 R2 8 62
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
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…

911 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now