all groups > sql server dts > may 2004 >
You're in the

sql server dts

group:

Re: How to call Oracle package from DTS package?


Re: How to call Oracle package from DTS package? Kris
5/28/2004 10:45:28 AM
sql server dts: Hi All,

I'm designing DTS package on SQL Server and need to call/execute Oracle
package (stored in an Oracle database).
How to call an Oracle package from DTS?

Cheers,

Kris

Re: How to call Oracle package from DTS package? Allan Mitchell
5/28/2004 11:37:25 AM
Can you not do this from within the ExecuteSQL task whilst pointing the
Oracle connection?


--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


[quoted text, click to view]

Re: How to call Oracle package from DTS package? Kris
5/28/2004 12:12:48 PM
I can execute any Select statement successfully , but I don't know how to
call a package.
I'm getting an error: Invalid SQL statement.

My call looks like:
customer.customer_load('test', 11)

I've tried:
customer.customer_load('test', 11)
call customer.customer_load('test', 11)
exec customer.customer_load('test', 11)
execute customer.customer_load('test', 11)

with the same result.

Cheers,

Kris

[quoted text, click to view]

Re: How to call Oracle package from DTS package? Allan Mitchell
5/28/2004 12:33:54 PM
what about a SELECT ?

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


[quoted text, click to view]

Re: How to call Oracle package from DTS package? Kris
5/28/2004 1:14:53 PM
select customer.customer_load('test', 11)

generates following error:
"FROM clause not found where expected".

Cheers,

Kris

[quoted text, click to view]

Re: How to call Oracle package from DTS package? Kris
5/28/2004 1:30:42 PM
this works:

begin customer.customer_load('test', 11); end;

Thanks anyway
Kind regards,

Kris

[quoted text, click to view]

Re: How to call Oracle package from DTS package? Allan Mitchell
5/28/2004 2:13:11 PM
Excellent. That Q has come up a few odd times and I have to admit I am not
an Oracle guy but kinda thought it has to be possible right. At least now
we have it for others to find on Google.


--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


[quoted text, click to view]

AddThis Social Bookmark Button