dbTalk Databases Forums  

Calling parameterized Oracle Procedures

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Calling parameterized Oracle Procedures in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Alex Roberts
 
Posts: n/a

Default Calling parameterized Oracle Procedures - 12-04-2003 , 08:56 AM






Hi All,

I'm attempting to push data into an Oracle database by calling a parameterised stored procedure, (hopefully contained within a package) with data returned from a "Get" stored procedure in a SQL Server database.

I planned to do this using a data-driven query task where the source was (for example) "exec p_getData" and the query being "BEGIN p_putData (?,?); END;".

I tried this first against a destination database in SQL Server, and provided the syntax was changed to t-sol, it worked fine. However when the destination was the Oracle database it failed. Due I think to the fact that it couldn't verify the parameters for the called stored procedure. (The PL/SQL worked fine in SQLPlus).

Any Ideas? Should I be using a data-driven query task or perhaps writing a vb-script would be better...

Has anyone had any experience of doing this?



Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: Calling parameterized Oracle Procedures - 12-08-2003 , 04:22 PM






In article <6051A47D-B443-4234-A047-CC145813B1E5 (AT) microsoft (DOT) com>, Alex
Roberts <alroberts (AT) elsevier (DOT) com> writes
Quote:
Hi All,

I'm attempting to push data into an Oracle database by calling a
parameterised stored procedure, (hopefully contained within a package)
with data returned from a "Get" stored procedure in a SQL Server
database.

I planned to do this using a data-driven query task where the source
was (for example) "exec p_getData" and the query being "BEGIN p_putData
(?,?); END;".
I tried this first against a destination database in SQL Server, and
provided the syntax was changed to t-sol, it worked fine. However when
the destination was the Oracle database it failed. Due I think to the
fact that it couldn't verify the parameters for the called stored
procedure. (The PL/SQL worked fine in SQLPlus).

Any Ideas? Should I be using a data-driven query task or perhaps writing
a vb-script would be better...

Has anyone had any experience of doing this?


Try to use the ODBC canonical syntax-

{Call myfunc}
{Call myfunc()}
{Call myfunc( 1, 2 )}


--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.