@dnoeth:
sorry for the late response. I am using TRANSACTION in teradata session mode and I use Teradata Express Studio with TMODE=TERA connection on MAC. My stored procedure looks like this:
... BEGIN TRANSACTION; CALL DBName.DATA_IMPORT(dt, ErrorCode, ErrorMsg); IF (ErrorCode = 0) THEN END TRANSACTION; ELSE ROLLBACK; END IF;
...
REPLACE PROCEDURE DBName.DATA_IMPORT()
BEGIN
CALL DBName.IMPORT_A();
CALL DBName.IMPORT_B();
END
I have to either not use TRANSACTION or use WITH NO CHECK OPTION to make it work. You may create simple tables and try it out. Thanks!
@dnoeth:
sorry for the late response. I am using TRANSACTION in teradata session mode and I use Teradata Express Studio with TMODE=TERA connection on MAC. My stored procedure looks like this:
...
BEGIN TRANSACTION;
CALL DBName.DATA_IMPORT(dt, ErrorCode, ErrorMsg);
IF (ErrorCode = 0) THEN
END TRANSACTION;
ELSE
ROLLBACK;
END IF;
...
REPLACE PROCEDURE DBName.DATA_IMPORT()
BEGIN
CALL DBName.IMPORT_A();
CALL DBName.IMPORT_B();
END
I have to either not use TRANSACTION or use WITH NO CHECK OPTION to make it work. You may create simple tables and try it out. Thanks!