I need load data from mssql db into Vertica.
Mssql data has symbol "|" and I want use special symbol(code 164) for delimiter for Copy command.
For uploading data into file i use such command
cat get_SCR_TREATYSTATES.sql | isql -v web-mssql vertica fff -b -x0x0a4 > SCR_TREATYSTATES.csv
All is ok - i can see special symbol in file.
Then i use such command to load data into Vertica
vsql -w Vertica -c "copy stage.SCR_TREATYSTATES from local '/tmp/test_load/SCR_TREATYSTATES.csv' delimiter E'\164' null as '' rejected data '/tmp/test_load/TREATYSTATES.csv.bad' EXCEPTIONS '/tmp/test_load/SCR_TREATYSTATES.csv.ex' direct;"
I see all rows are rejected and copy command can't find delimiter(E'\164').
May be i use wrong parameters and etc...
Oleg.
Sign up
Already have an account? Login
Welcome to the Rocket Forum!
Please log in or register:
Employee Login | Registration Member Login | RegistrationEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.