Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
plarion
Contributor II
Contributor II

[resolved] Sybase BCP

Hello,
Has anyone tried TOS Sybase BCP functionality ? I'm facing character set conversion problem.
Labels (2)
1 Solution

Accepted Solutions
plarion
Contributor II
Contributor II
Author

I was able to resolve BCP issue.
Here are few observations (for Windows client):

For BCP out operation, use "Row Seperator" as "\r\n" ==> i.e CRLF
For BCP in operation, use "Row Terminator" as "\\n" ==> Please note extra backslash
For BCP in operation, use "Encoding" as "" 
I hope it will help.

View solution in original post

2 Replies
plarion
Contributor II
Contributor II
Author

Just to add more information:
I'm getting following error:
++++++++++++++
Server Message: dev1 - Msg 4847, Level 16, State 1:
BCP insert operation is disabled when data size is changing between client and server character sets. Please use BCP's -Y option to invoke client-side conversion.
++++++++++++++
I'm able to load the same file using bcp command.
plarion
Contributor II
Contributor II
Author

I was able to resolve BCP issue.
Here are few observations (for Windows client):

For BCP out operation, use "Row Seperator" as "\r\n" ==> i.e CRLF
For BCP in operation, use "Row Terminator" as "\\n" ==> Please note extra backslash
For BCP in operation, use "Encoding" as "" 
I hope it will help.