Solved

execute Oracle function in Excel 2010 using ODBC

Posted on 2013-01-14
2
697 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
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

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

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
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.

867 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

20 Experts available now in Live!

Get 1:1 Help Now