sql server - bulk insert (SQL) format file last line -
i have following csv wish import db
"le";"source";"var_sctarget_name" "b";"a/k";"a/k" "a";"a/b";"a/b" "a";"a/b";"a/c"
i arranged following format file
10.0 3 1 sqlchar 0 0 "\";\"" 1 "" 2 sqlchar 0 0 "\";\"" 2 b "" 3 sqlchar 0 0 "\"\r\n\"" 3 aa ""
which works fine, if weren't last line. output in db following
le source var_sctarget_name b a/k a/k a/b a/b a/b a/c"
how can remove quote on last row? i'm working on sql server platform, if can of help.
Comments
Post a Comment