Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Error 7628 happened in TRANSACTION mode whiling trying to insert a table that has "WITH CHECK OPTION" foreign key≈ - response (3) by zhiyanshao

$
0
0

@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!


Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>