Calling Transact SQL stored procedures via Oracle Transaprent Gateway [message #13644] |
Wed, 21 July 2004 02:40 |
Elena
Messages: 14 Registered: December 2000
|
Junior Member |
|
|
I have SQL stored procedure dbo.dajOznakaVal with input parametar (integer) and output parametar (char)
CREATE PROCEDURE dbo.DajOznakaVal @valuta int
AS
select oznaka from valuti (nolock) where sifra=@valuta
GO
The table VALUTI has records SIFRA type char(3) and OZNAKA type char(3).
When I try to execute exec dbo.dajOznakaVal@testlink(978) using the PL/SQL command window I keep receiving the following message:
ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'DAJOZNAKAVAL'
ORA-06550: line 1, column 7:
But when try the select oznaka from valuti@testlink where sifra=978 in the PL/SQL SQL window I have the correct result EUR!
For establishing the database connection and setting the parametars in the initial files I was using the book ‘Oracle Transparent Gateway for Microsoft SQL Server”!
|
|
|
|
|