Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PowerBuilder executing SQL on an HIS server getting SQLDBCode 8524

Status
Not open for further replies.

mportsmouth

Programmer
Mar 16, 2005
1
CA

I am trying to get PowerBuilder and a Host Integration Server to get and update information on a DB2 database.

The HIS server has 2 stored procedures defined. The CREATE_VIEW stored procedure creates a view that selects the row to be updated.

The UPDATE_ROW stored procedure contains the SQL to update the row in the view created by the CREATE_VIEW stored procedure.

In the PowerBuilder code I have created an object ccd_sqlca which is inherited from Transaction.

Executing the CREATE_VIEW stored procedure works great.

Then the code calls the UPDATE_ROW stored procedure and gets an error. The SQLDBCode is 8524. The SQLErrText is 'The current transactin could not be exported to the remote provider. It has been rolled back.'

I have coded a second call to the UPDATE_ROW stored procedure immediately followng the first one and the row is updated beautifully.

I have tried several different things to get this to work. I have coded the update statement directly in the PowerBuilder code and issued the 'EXECUTE IMMEDIATE' statement. Same behavior, the first on returns an error and the second one updates the row.

Any ideas out there?

Michelle
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top