Also, let me know if you know any other mechanism which
can be used to do this.
Any help on this is greatly appreciated.
Thanks
John.
SELECT * FROM tablename ;
OUTPUT TO filename
FORMAT ASCII
QUOTE 'unique character'
SQL Anywhere requires all strings to be enclosed by the quote string.
Use some unique character that you can remove in and editor before
bcping the file into System 11.
If your data includes commas, you'll need to also specify a column
delimiter with DELIMITED BY string. Make sure your bcp format file uses
the same delimiter string.
Good luck.
1. In SQL Anywhere unload your tables as follows:
unload table umwa.user_info to '\data\@tounix\@userinf.dat'
delimited by '\x09' quotes off;
2. FTP the table to the SUN
3. on the sun, BCP the data into the table
bcp adumwa.dbo.user_info in @USERINF.DAT -e @USERINF.ERR -E -c -Uumwa
-Psysadm
In this Example, there is an autoincrement field in SQL Anywhere that
is moved to an identity filed in Sybase 11 (-E in BCP)