Solved

4D Database Export to Excel using ODBC

Posted on 2008-09-29
8
2,977 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
  • 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Shadow IT is coming out of the shadows as more businesses are choosing cloud-based applications. It is now a multi-cloud world for most organizations. Simultaneously, most businesses have yet to consolidate with one cloud provider or define an offic…
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

910 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now