Re: NEED TO CALL AS400 S.P
From: Erland Sommarskog (esquel_at_sommarskog.se)
Date: 06/29/04
- Next message: Paul Wheeler: "RE: Accessing Excel cell comments using ADO"
- Next in thread: Phil: "Re: NEED TO CALL AS400 S.P"
- Reply: Phil: "Re: NEED TO CALL AS400 S.P"
- Reply: Phil: "Re: NEED TO CALL AS400 S.P"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 29 Jun 2004 22:43:53 +0000 (UTC)
Phil (Phil@discussions.microsoft.com) writes:
> The stored procedure doesn't return any records as it only does inserts
> and updates. I have been unsuccessfully trying to devise a method to
> 'fool' the OPENQUERY. :(
Well, OPENQUERY is definitely a dead end. (Unless you could add a dummy
result set.)
> *****EXEC as4cs01..as4cs01.qgpl.sp_run
> RETURNS:
> The procedure name 'as4cs01..as4cs01.qgpl.' contains more than the
> maximum number of prefixes. The maximum is 3.
So that is a plain syntax error.
> *****EXEC as4cs01.as4cs01.qgpl.sp_run
> RETURNS:
> Server: Msg 7212, Level 17, State 1, Line 1
> Could not execute procedure 'a2' on remote server 'as4cs01'.
> [OLE/DB provider returned message: SQL0104: Token { was not valid. Valid
> tokens: ( END SET CALL DROP FREE HOLD LOCK OPEN WITH ALTER BEGIN CLOSE.
> Cause . . . . . :
Gosh! What an error message! I'm afraid that I am completely lost
here. Something appears to go very wrong where, and I have a feeling
that it takes some knowledge about AS400 to understand why. Is there
a tool on AS400 corresponding to Profiler that you could run to see
what your OLE DB provider is feed the AS400 with?
One thing strikes me as funny, and that is that the error messages
says 'a2' and not 'sp_run'. Could the OLE DB provider be generating
some temporary stored procedure?
I think you may need a forum with some knowledge about this
IBMDA400 provider. Maybe there are alternative providers you can use?
-- Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se Books Online for SQL Server SP3 at http://www.microsoft.com/sql/techinfo/productdoc/2000/books.asp
- Next message: Paul Wheeler: "RE: Accessing Excel cell comments using ADO"
- Next in thread: Phil: "Re: NEED TO CALL AS400 S.P"
- Reply: Phil: "Re: NEED TO CALL AS400 S.P"
- Reply: Phil: "Re: NEED TO CALL AS400 S.P"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|