Solved

4D Database Export to Excel using ODBC

Posted on 2008-09-29
8
3,089 Views
Last Modified: 2012-05-05
Hi Folks

I am a power user/ certified external consultant of a third party developed industry specific package that is based on the 4D database engine. I'm based in Australia and the package was developed here as well. I want to enhance the standard reports provided by the package by extracting the data via ODBC to Excel. The third party developer is not willing to assist me as they see me as a competitor in terms of consulting income.

I'm an accountant, not a developer and I don't have programing skills. However, I have been around PCs a long time and am not afraid to tinker with software.

I'd love to receive your advice about:
(a) which ODBC to use,
(b) how to configure it to talk to the 4D database
(c) how to extract the data via the ODBC to Excel

Thanks in advance
Ozzie
0
Comment
Question by:MauriceLSmith
[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
  • 3
  • 2
8 Comments
 
LVL 29

Accepted Solution

by:
Badotz earned 63 total points
ID: 22595857
This has helped me with connection strings in the past:

 1. In Notepad, or any other text editor, create a file named Temp.udl  

 2. Leave the file empty and save it to the Desktop

 3. Double-click the Temp.udl file

 4. The Data Link Properties dialog box appears

 5. In the Data Link Properties dialog box, click Provider. Select the appropriate provider from the list

 6. Click Connection and select the corresponding name of the server and the database
    Type the User Name and the Password
 
 7. Click Test Connection to test the connection

 8. Click OK

 9. Right-click Temp.udl and click 'Open With'
   
    If Notepad shows up as an option, click it, otherwise click 'Choose Program' and navigate
    through the list to notepad and select it

10. Copy the connection string to your application

0
 

Author Comment

by:MauriceLSmith
ID: 22612708
Hi Badotz Thank you for your assistance.

I only managed to get to the first part of Point 5 without hassles. When I opened the Data Link Properties box the application is not listed there, I chose the "Microsoft OLE DB Provider for ODBC Drivers" (is this the correct selection?). Then for Step 6 for the "data source name" I pasted in the directory path name to the application database. I entered the user name and password. Then I tested the connection. I received the following error message " Microsoft Data Link Error" "Data Source Name Too Long". No matter what I try in this section I receive the same message.

Your further assistance would be appreciated.

TIA
0
 
LVL 29

Expert Comment

by:Badotz
ID: 22613835
Make sure, in Step 4, you are on the first tab.

If your app is not ODBC-compliant, or the driver is not listed, then I cannot help you further.

You might search Google for downloadable drivers and try it again?
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
LVL 51

Assisted Solution

by:Mark Wills
Mark Wills earned 62 total points
ID: 22616686
What version is it ?

Following might help a bit more with getting the ADO type coinnection using the udl link. http://www.4d.com/docs/CMU/CMU18426.HTM

Drivers can be retrieved from : http://www.4d.com/products/odbcdriver.html  or from http://www.downloaddatabase.com/databasemanagement/4d-odbc.html
0
 
LVL 51

Expert Comment

by:Mark Wills
ID: 22616759
That first link, wahty I was trying to say was, you will need to simply apply what it is saying into the new method using the ADO link...
0
 
LVL 51

Expert Comment

by:Mark Wills
ID: 22649617
Once you have established a link to the 4D database, or have the ODBC drivers installed, then in Excel you can start to query that database.

As a starting point, use the import external data wizard - found via "DATA" on the menu bar. Use the odbcdriver for 4d, and follow the prompts / directions. You can use MSQuery to get more programatic queries on the database...

And aplogies for the shocking typo's and grammar on the previous posting.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
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…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

730 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