3 weeks ago
SQL Anywhere 17.0.11.7908 on Windows 11.
Loading local data into a local database. Data (u.txt) contains:
1;AAAAA
2;BBBBB
3;CCCCC
1;DDDDD
4;EEEEE
Using ALLOW ALL ERRORS works fine (four loaded rows with c1=1,2,3,4):
create table t1 (c1 int primary key,c2 varchar(20));
load table t1 (c1,c2) using file 'd:\\u.txt' allow all errors delimited by ';';
Trying the ROW LOG or MESSAGE LOG clause (or both clauses) allways leads into a syntax error:
load table t1 (c1,c2) using file 'd:\\u.txt' allow all errors row log 'd:\\r.lg' delimited by ';';
Syntax error near 'd:\r.lg' on line 1
SQLCODE=-131, ODBC 3-Status="42000"
load table t1 (c1,c2) using file 'd:\\u.txt' allow all errors message log 'd:\\m.lg' delimited by ';'
Syntax error near 'd:\m.lg' on line 1
SQLCODE=-131, ODBC 3-Status="42000"
What I'm doing wrong?
Thanks
Robert
Request clarification before answering.
The syntax for ROW LOG is
| ROW LOG log-target
log-target : { FILE server-filename | CLIENT FILE client-filename | VARIABLE variable-name }
You are missing FILE or CLIENT FILE ( or VARIABLE) in your statement. See line 4 below:
load table t1 (c1,c2)
using file 'd:\\u.txt'
allow all errors
row log file 'd:\\r.lg'
delimited by ';'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
21 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.