ExamGecko
Question list
Search
Search

List of questions

Search

Question 28 - ARA-C01 discussion

Report
Export

When loading data from stage using COPY INTO, what options can you specify for the ON_ERROR clause?

A.
CONTINUE
Answers
A.
CONTINUE
B.
SKIP_FILE
Answers
B.
SKIP_FILE
C.
ABORT_STATEMENT
Answers
C.
ABORT_STATEMENT
D.
FAIL
Answers
D.
FAIL
Suggested answer: A, B, C

Explanation:

The ON_ERROR clause is an optional parameter for the COPY INTO command that specifies the behavior of the command when it encounters errors in the files.The ON_ERROR clause can have one of the following values1:

CONTINUE: This value instructs the command to continue loading the file and return an error message for a maximum of one error encountered per data file. The difference between the ROWS_PARSED and ROWS_LOADED column values represents the number of rows that include detected errors.To view all errors in the data files, use the VALIDATION_MODE parameter or query the VALIDATE function1.

SKIP_FILE: This value instructs the command to skip the file when it encounters a data error on any of the records in the file. The command moves on to the next file in the stage and continues loading.The skipped file is not loaded and no error message is returned for the file1.

ABORT_STATEMENT: This value instructs the command to stop loading data when the first error is encountered. The command returns an error message for the file and aborts the load operation.This is the default value for the ON_ERROR clause1.

Therefore, options A, B, and C are correct.

asked 23/09/2024
Marcelo Rubio Caiado
44 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first