?
Solved

Importing a file into the database

Posted on 2004-08-04
4
Medium Priority
?
751 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 252 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 248 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
Lotus Notes has been used since a very long time as an e-mail client and is very popular because of it's unmatched security. In this article we are going to learn about  RRV Bucket corruption and understand various methods to Fix "RRV Bucket Corrupt…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

765 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