OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Relational DB

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Base
View previous topic :: View next topic  
Author Message
Steven
Newbie
Newbie


Joined: 20 Nov 2003
Posts: 2

PostPosted: Thu Nov 20, 2003 1:29 pm    Post subject: Relational DB Reply with quote

is it possible to set up a relational database if all sources are text files OR
can you build a dummy relational database which will read text files into tables
Back to top
View user's profile Send private message
tony.groves
OOo Enthusiast
OOo Enthusiast


Joined: 24 Aug 2003
Posts: 117
Location: Ireland

PostPosted: Thu Nov 20, 2003 4:48 pm    Post subject: Reply with quote

If it's Windows you are using, then you might be in luck. I looked at my ODBC driver collection, and noticed that there is a Microsoft Text ODBC Driver for *.txt and *.csv files. I've never used it but I'd be surprised if it didn't work as expected. I can't remember how I got it, but I'd imagine it was a free download from Microsoft.
Back to top
View user's profile Send private message
dfrench
Moderator
Moderator


Joined: 03 Mar 2003
Posts: 1605
Location: Wellington, New Zealand

PostPosted: Thu Nov 20, 2003 8:11 pm    Post subject: Reply with quote

If you want to use more than one table at a time in OOo (for example in form/subform)which I think you are implying by the term 'relational', TEXT, DBASE and SPREADSHEET will not do. If you dig down far enough you will find a documented restriction but it stands out because when you design a query, you will not get the invitation to add a table if the first one is text.
Back to top
View user's profile Send private message
avantman42
Super User
Super User


Joined: 28 Jul 2003
Posts: 751
Location: Staffordshire, UK

PostPosted: Fri Nov 21, 2003 3:04 am    Post subject: Reply with quote

I've just done a quick experiment, and managed to use two csv files in a relational database. The key was to set up an ODBC connection (using the text driver) to the directory containing the csv files, then use the ODBC connection as the data source. I'm reasonably sure that the ODBC text driver ships as a standard part of Windows (there is also a DBase driver, so you might be able to use that instead if you prefer).

One thing, though. When the files were named Sheet1.csv & Sheet2.csv, I had problems with the queries, which I fixed by removing the .csv extensions from the files, so that they were named Sheet1 & Sheet2. It may be possible to fix the problem while keeping the extensions, but this was the first fix that I found.

Russ
Back to top
View user's profile Send private message
Steven
Newbie
Newbie


Joined: 20 Nov 2003
Posts: 2

PostPosted: Fri Nov 21, 2003 8:58 am    Post subject: Reply with quote

Thanks for the replys guys however I am using solaris so I`ll have a dig around the solaris ODBC stuff and see what I can find
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Base All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group