-1

I want to execute this below stored procedure in Excel without VBA/macro code and get output. Any idea how to get this?

create or replace 
    PROCEDURE  TEST2 (P_OUTCUR OUT SYS_REFCURSOR)

    IS

    V_ABALPH VARCHAR2(30):= 'TRYS';

    BEGIN

    OPEN P_OUTCUR FOR 

    SELECT *  FROM PRODDTA.F0101 where abalph like '%' || V_ABALPH || '%';
    commit;
    end;

excel stored proc output

Output of stored procedure should display in Excel sheet.

Here are the steps to get output in excel from SQL server.

http://datapigtechnologies.com/blog/index.php/running-a-sql-stored-procedure-from-excel-with-dynamic-parameters/

In this similar way can I do for Oracle?

4
  • Possible duplicate of VBA calling function via VBA and ADO Commented Dec 2, 2016 at 9:49
  • I have clearly mentioned in my post and subject line that I do not wish to code in VBA. I wish to call procedure straight from excel connection properties and not VBA. by below steps datapigtechnologies.com/blog/index.php/… Commented Dec 2, 2016 at 16:11
  • You can't do that without VBA in excel Commented Dec 2, 2016 at 16:12
  • I am able to do it with SQL server. Is there no way we can do with Oracle databases too? Commented Dec 2, 2016 at 16:14

1 Answer 1

0

Register your DB in ODBC Sources and then use solution from datapigtechnologies.

Sign up to request clarification or add additional context in comments.

1 Comment

I am using Microsoft Oracle OLEDB connecton string............. Provider=OraOLEDB.Oracle.1;Persist Security Info=True;User ID=BUD;Data Source=HIBUDP1;Extended Properties=" so should I ODBC connection only then?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.