Code: Select all
.StoredProcName := 'xxx';
.CreateParam.....
.Execute
The AutoCommit has been set to false on the connection object.
Code: Select all
.StoredProcName := 'xxx';
.CreateParam.....
.Execute
Code: Select all
CREATE OR REPLACE PROCEDURE SCOTT.test_proc
AS
BEGIN
INSERT INTO test_table (id, NAME) SELECT MAX(ID) + 1, 'test ' || TO_CHAR(MAX(ID) + 1) FROM test_table;
END;
/Code: Select all
OraSession1.AutoCommit := False;
OraStoredProc1.AutoCommit := False;
OraStoredProc1.ExecProc;