Re: NEED TO CALL AS400 S.P
From: Phil (Phil_at_discussions.microsoft.com)
Date: 07/06/04
- Previous message: Yilei Wang: "Re: Mysterious OLE DB DBID propids"
- In reply to: Erland Sommarskog: "Re: NEED TO CALL AS400 S.P"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 6 Jul 2004 09:04:03 -0700
The idea in one of the other groups seems to be the best. I am testing it now. That is to use a trigger on a table and perform an INSERT/UPDATE which will execute the trigger. So simple yet so nice (if it works).....
"Erland Sommarskog" wrote:
> 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
>
- Previous message: Yilei Wang: "Re: Mysterious OLE DB DBID propids"
- In reply to: Erland Sommarskog: "Re: NEED TO CALL AS400 S.P"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|