I was trying to use bcp out option through dos prompt after logging in to sybase 10.5.0 database as
isql -Uxyz -xyz
password:xyz1
use database name
then
go
then giving command
bcp mydb..mytable out somefile.txt -Ssomeserver -Usomeuser -Psomepassword -c
It is not working for some reason.
It is saying incorrrect syntax at '.'.
Can someone please send me the exact syntax for this bcp to work or missing piece in this puzzle.Thanks in advance.
Main Topics
Browse All Topics





by: IncisiveOnePosted on 2008-12-02 at 21:36:05ID: 23083483
We do not have clobs, blobs, boobs, etc in Sybase, we have text and image. You are not unloading clobs or bobs, you are unloading text or image. What you are loading into is (your choice) in Oracle.In technical work, it is important o be precise.
able> -c
You have posted three questions about one and the same problem, but you are not listening. You need to unload the Sybase tables via bcp-out NOT any other facility, which has its limitations. You are getting stuckon these limitations. Sybase has no limitation when using the native utilities, drivers, etc.
Use bcp-out.
2 It has a DEFAULT of 32k for image and text columns.
3 find out the size of your text/image columns, do this for ALL text/image columns:
$ isql ...
> SELECT MAX(DATALENGTH(text_col) ) FROM table
now you have the max size of the column
4 for each table with a text/image column:
$ bcp -U -P -S -T<max_col_size_for_this_t
That will give you a csv file for each table containing the full text/image column.