Good afternoon,
We are using the following function with one Exec SQL statement to run a SELECT query on a remote database, form an application where we integrate invoices from our application. The remote server is added as a Linked Server on the server with the PLEX application database.
When we start the application, this works properly on odd ocurrences and mix the values returned on the fields on even occurences.
We edited the cpp generated, to print the result of the wrapper generated by PLEX with this instruction and it prints different values for the same columns. The record is the right one, but the order of the columns is not.
1st time:
[][LCB][2014][305][][][][][][0][-1236000][-1236000][44][44]
2nd time:
[][2014][LCB][305][][][][][][-1236000][-1236000][0][44][44]
3rd time:
[][LCB][2014][305][][][][][][0][-1236000][-1236000][44][44]
4th time:
[][2014][LCB][305][][][][][][-1236000][-1236000][0][44][44]
The number of columns returned from the SELECT are the same in number and order of the variable to where the result is sent (FetchPayingDocuments).
The same procedure, same SELECT values for the WHERE clause, all equal, different column order on odd and even occurrences.
This code worked before, the server where the PLEX application runs was reinstalled, has the same PTF as before.
Any idea or help would be appreciated.
Thank you.
Best regards.