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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL7 and Stored Procedure ISSUE!!!!

Status
Not open for further replies.

cenwesi

Programmer
Jan 13, 2003
14
US
Can someone explain to me why i have to put commit using sqlca at the end of this stored procedure execution
=======================================================
int mout

DECLARE webrequest PROCEDURE FOR web_request
@code = :cd1,
@code2 = :cd2,
@code3 = :cd3,
@msg = :mesg using sqlca;

EXECUTE webrequest;
FETCH webrequest into :mout;
CLOSE webrequest;

commit using sqlca;
 
in pb, when u use commands like Update, insert, a transaction begins and we need to do a commit o rollback.

Your SP could be updating information in any table.

is it ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top