Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


amgeeknz

7 posts

Wannabe Geek
+1 received by user: 1


#303626 23-Feb-2023 19:29
Send private message

hello, we have a very old database actually works in a old dos terminal, we are looking to see if we can export the data out but haven't had much doing so.

 

Has anyone had any experience or ideas on how we would go about doing this, we tried importing into excel but the data gets all messed up. Thoughts


Create new topic
mentalinc
3384 posts

Uber Geek
+1 received by user: 1023

Trusted

  #3041083 23-Feb-2023 20:26
Send private message

What's the application (might have done something funny with the data model etc)?

 

What apps have you tried to use already (I assume you didn't try to use built in Excel import)





CPU: AMD 5900x | RAM: GSKILL Trident Z Neo RGB F4-3600C16D-32GTZNC-32-GB | MB:  Asus X570-E | GFX: EVGA FTW3 Ultra RTX 3080Ti| Monitor: LG 27GL850-B 2560x1440

 

Quic: https://account.quic.nz/refer/473833 R473833EQKIBX 




amgeeknz

7 posts

Wannabe Geek
+1 received by user: 1


  #3041086 23-Feb-2023 20:34
Send private message

the excel import didnt import data was all over the place.

 

Ive used a couple of dbf viewers, application was designed a number of years ago. Developer is no longer around


allan
2073 posts

Uber Geek
+1 received by user: 899

ID Verified
Lifetime subscriber

  #3041110 23-Feb-2023 21:38
Send private message

Did you just try a direct "Open dBase files" from within Excel? 

 

What about trying an Excel Data Import via the /Data menu/Get Data/ option, which essentially creates an ODBC style connection using Microsoft query behind the scenes. It's ages since I've done this, but I've got an old dBase file lying around somewhere I could try it on if you want more specific instructions. I remember it being a little complicated...

 

 

 

 




amgeeknz

7 posts

Wannabe Geek
+1 received by user: 1


  #3041111 23-Feb-2023 21:40
Send private message

that would be awesome if you could, to be honest ive never done this before so just helping someone out :)


mentalinc
3384 posts

Uber Geek
+1 received by user: 1023

Trusted

  #3041114 23-Feb-2023 22:08
Send private message

In that case, I assume you're working with a backup of the file not the original?





CPU: AMD 5900x | RAM: GSKILL Trident Z Neo RGB F4-3600C16D-32GTZNC-32-GB | MB:  Asus X570-E | GFX: EVGA FTW3 Ultra RTX 3080Ti| Monitor: LG 27GL850-B 2560x1440

 

Quic: https://account.quic.nz/refer/473833 R473833EQKIBX 


allan
2073 posts

Uber Geek
+1 received by user: 899

ID Verified
Lifetime subscriber

  #3041123 23-Feb-2023 22:36
Send private message

Okay here goes. Apologies in advance if it's not clear. From within Excel go to the Data menu and select the following:

 

"Get Data"
"From Other Sources"
"From Microsoft Query"
Select "New Data Source" & "OK"
Provide a name (1)
Select "Microsoft Access dBase driver" (2)
click "Connect" (3)
Untick "Use Current Directory"
Click "Select Directory" button & browse to the folder where your dbf files live (I've only tried this with local files, not via a network connection)
Click "OK a couple of times to return to the "Create New Data Source screen"
Click "OK" again to return to the "Choose Data Source" screen, where you should see the name you provided above
Highlight this name and click "OK"
You will then see the list of table names and fields that you can choose to move to your query (entire table(s) or just selected fields by clicking the right arrow
When done, click "Next" where you can choose to filter the data 
"Next" again to choose the sort order
"Next" again to get to the "Finish Query" screen, where you can choose to save the query
"Finish" to the "Import Data screen"
"OK" to pull the data into Excel as a table
And obviously a "Save As" if you want it in CSV format

 

Hope that makes sense and it works for you.

 

Edited to add - and yes, as @mentalinc has said, use a copy of the dbf files, not the originals


 
 
 

Shop on-line at New World now for your groceries (affiliate link).
ANglEAUT
altered-ego
2436 posts

Uber Geek
+1 received by user: 841

Trusted
Lifetime subscriber

  #3041134 23-Feb-2023 23:10
Send private message

MS Access has "better" support for viewing database files. If you have a valid license, try that.

 

I personally like Database Browser from DB Software Laboratory over at PortableApps.com





Please keep this GZ community vibrant by contributing in a constructive & respectful manner.


allan
2073 posts

Uber Geek
+1 received by user: 899

ID Verified
Lifetime subscriber

  #3041139 23-Feb-2023 23:28
Send private message

ANglEAUT:

 

I personally like Database Browser from DB Software Laboratory over at PortableApps.com  

 

Nice piece of software. Still needs an ODBC connection defined for dBase files though


frankv
5705 posts

Uber Geek
+1 received by user: 3666

Lifetime subscriber

  #3043210 28-Feb-2023 13:03
Send private message

Try DBeaver... it can read .DBF files (amongst a multitude of others). Create a new connection to the folder containing your files, then open the files as tables.

 

Worst case, I have Java source code for a DBF reader, derived from DbfEngine... if you search for this on GitHub, you'll get a couple of hits in Java & C++

 

 

 

 


Create new topic








Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.