Solved

4D Database Export to Excel using ODBC

Posted on 2008-09-29
8
3,053 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

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.

Question has a verified solution.

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

Suggested Solutions

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…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

856 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