Re: Error in calling stored procedure via DB link
- From: Paul Clement <UseAdddressAtEndofMessage@xxxxxxxxxxxxxx>
- Date: Thu, 04 Aug 2005 10:43:25 -0500
On Wed, 3 Aug 2005 12:33:04 -0700, "Deva" <Deva@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
¤ Hi,
¤ I have a VB client that calls a stored proc sp1 in an oracle server.
¤ The stored proc sp1 inturn calls another stored sp2 in another oracle server
¤ via dblink.
¤ This works fine.
¤
¤ If I try to call the stored proc sp2 directly by saying sp2@dblink() then it
¤ fails.
¤ The error that I get is "-2147217900 : Syntax error in {call.."
¤
¤ Here is the code snippet.
¤ With oCommand
¤ .ActiveConnection = oAdoConnection
¤ .CommandType = adCmdStoredProc
¤ .CommandText = "BUILD_NUMBER@NEW_LINK"
¤ .CreateParameter("in_IDENT",adChar,adParamInput ,10,strIdent)
¤ .CreateParameter("out_NO OUT",adChar,adParamOutput ,10,strOUT)
¤ End With
¤ oCommand.Execute
¤
I believe that you need to use the Call syntax. See if the following MS KB article helps:
http://support.microsoft.com/kb/176086/
Paul
~~~~
Microsoft MVP (Visual Basic)
.
- Follow-Ups:
- References:
- Prev by Date: Re: Problem Accessing MSYSOBJECTS table
- Next by Date: Re: Link Oracle Tables to Access using VBA, ADO and ADOX
- Previous by thread: Error in calling stored procedure via DB link
- Next by thread: Re: Error in calling stored procedure via DB link
- Index(es):
Relevant Pages
|
Loading