[Solved] Importing a huge file....
-
- Posts: 13
- Joined: Sun Feb 10, 2008 12:23 am
[Solved] Importing a huge file....
I have a txt document with listings of well over 100,000 addresses in my area and wish to import this into Base. I can't open it in Calc first as there are far too many fields. How can I get this into Base????
Last edited by Hagar Delest on Tue Jun 10, 2008 2:55 pm, edited 2 times in total.
Reason: tagged the thread as Solved.
Reason: tagged the thread as Solved.
Re: Importing a huge file....
For read-only access:
Copy the file into a dedicated directory.
File>New>Database
[X]Connect to existing database
Type: Text
Point to your directory and specify the details.
Save the database.
Add queries and reports. Forms are not that useful with read-only data.
Copy the file into a dedicated directory.
File>New>Database
[X]Connect to existing database
Type: Text
Point to your directory and specify the details.
Save the database.
Add queries and reports. Forms are not that useful with read-only data.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
-
- Posts: 13
- Joined: Sun Feb 10, 2008 12:23 am
Re: Importing a huge file....
Thanks for the reply.
When I did this, I get an error message. "General input/output error" and nothing gets imported. Any ideas???
When I did this, I get an error message. "General input/output error" and nothing gets imported. Any ideas???
-
- Posts: 13
- Joined: Sun Feb 10, 2008 12:23 am
Re: Importing a huge file....
OK, I got that fixed and the data imported into my database, but all the columns that were in the txt file and lumpped into one database column if that makes any sense to you. Am I doing something wrong??
If you would like to see the txt docs I am trying to import: http://www.snb.ca/gdam-igec/e/2900e_1.asp and look for Civic Address Database
If you would like to see the txt docs I am trying to import: http://www.snb.ca/gdam-igec/e/2900e_1.asp and look for Civic Address Database
Re: Importing a huge file....
Edit>Database>Properties... tab:"Additional Settings"
Set the delimiters below "Row Format"
Set the delimiters below "Row Format"
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
-
- Posts: 13
- Joined: Sun Feb 10, 2008 12:23 am
Re: Importing a huge file....
Excellent!! This seems to have worked perfectly!
One more thing. Why does it say that this database does not support relationships?
One more thing. Why does it say that this database does not support relationships?
Re: Importing a huge file....
Because at this time in reality it is still a big lump of text (like what you originally saw). You will need to import it into a true database engine to use it as a full blown database table, right now OO.oBase is giving doing its best to help you with your text file.
Ron from Iowa, USA
-
- Posts: 13
- Joined: Sun Feb 10, 2008 12:23 am
Re: Importing a huge file....
And how do I go about doing that?
Re: Importing a huge file....
Not a big expert on OO.oBase, but I'll tell you what I would try.
Create a new database (with the native database engine is OK, in other words, just create a new database)
Have both your new and old databases open on screen at the table screen.
Drag your table based on the text file into the new database.
OPen the resulting table
(You may also have to add an ID field so after it is imported, edit it so it has a field (maybe called ID) that is Integer with Autovalue)
Good luck.
Create a new database (with the native database engine is OK, in other words, just create a new database)
Have both your new and old databases open on screen at the table screen.
Drag your table based on the text file into the new database.
OPen the resulting table
(You may also have to add an ID field so after it is imported, edit it so it has a field (maybe called ID) that is Integer with Autovalue)
Good luck.
Ron from Iowa, USA
Re: Importing a huge file....
As Ron already said, drag a table into a newly created database. A wizard pops up where you have to specify the name of the new table and if you want to create a new primary key. If your table already has a column of unique ID numbers or something like that you can later declare this as a primary key. In the second step you have to declare the data type for each column. You can also skip columns or rename columns.Insp Gadget wrote:And how do I go about doing that?
Oh, does the table contain dates? If so, what is the date format (YYYY-MM-DD, DD/MM/YY, MM/DD/YY,...)?
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Re: Importing a huge file....
Thank you Villeroy it had been a while since I had done this.
Ron from Iowa, USA
-
- Posts: 13
- Joined: Sun Feb 10, 2008 12:23 am
Re: Importing a huge file....
Thank you so much! My database is looking much better!!