Solved

Importing a file into the database

Posted on 2004-08-04
4
743 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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Database tuning – How to start and what to tune. This question is frequently asked by many people, both online and offline. There is no hard and fast rule-of-thumb for performance tuning, however, before beginning the tuning process one should a…
This article explains all about SQL Server Piecemeal Restore with examples in step by step manner.
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…

744 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

15 Experts available now in Live!

Get 1:1 Help Now