Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

DBMS_HS_PASSTHROUGH.EXECUTE_IMMEDIATE

Avatar of DBL9SSG
DBL9SSGFlag for United States of America asked on
Oracle Database
3 Comments1 Solution2700 ViewsLast Modified:
Hello,

I'm using the DBMS_HS_PASSTHROUGH.EXECUTE_IMMEDIATE command in PL/SQL in oracle to execute a store proc on a SQL Server 2005 database.
When the store proc on the SQL Server side excutes, It fails for some reason.  We're able to do a RETURN @@ERROR on the sql server side and see a value of 5000.  
However, On the Oracle side, the return value shows 0.  

Any suggestions on how to capture the return value from sql server onto Oracle?

Thank you.
JG
ASKER CERTIFIED SOLUTION
Avatar of schwertner
Commented:
This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answers