Solved

execute Oracle function in Excel 2010 using ODBC

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
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.

623 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