Solved

execute Oracle function in Excel 2010 using ODBC

Posted on 2013-01-14
2
705 Views
Last Modified: 2013-01-22
Hi Experts,

I would like to execute an Oracle sql in Excel 2010 using ODBC.  Connection to the database works but I am not sure how to run the script.

Example script:
===========
SELECT 
'This is a test', Name
api.functioncall('&val1','&val2','&val3') value1,
api.functioncall2('&val1','&val2','&val3') value2,
(select somevalue from someview where field1 = '&val1' and field2 = '&val2' and field3 = '&val3') value3
FROM DUAL

Open in new window

===============

The results should then populate the worksheet.

Thanks in advance.
0
Comment
Question by:taylort2
[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
2 Comments
 
LVL 19

Accepted Solution

by:
Thommy earned 250 total points
ID: 38776162
You can use Data Connection Wizard...
Query Oracle database

or execute a query
Execute Oracle Query (DML) from Exc
0
 
LVL 23

Assisted Solution

by:paquicuba
paquicuba earned 250 total points
ID: 38776324
Follow this instructions and it'll work for sure:

http://blog.mclaughlinsoftware.com/2009/11/30/sql-query-in-excel-2007/

Let me know if you need more help...I've done it before and it works
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

Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

733 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