Prepare the command and the data for transfer before using bcp in.
sp_dboption pubs2, "select into/bulkcopy/pllsort", true
To use fast bcp, remove indexes on the target table.
In addition:
[BCP]
Set the $SYBASE environment variable to the location of the current version of SAP ASE before using bcp.
To use a previous version of bcp, set the CS_BEHAVIOR property in the [bcp] section of the ocs.cfg file:
[bcp] CS_BEHAVIOR = CS_BEHAVIOR_100
If you do not set CS_BEHAVIOR to CS_BEHAVIOR_100, use functionality for bcp 11.1 and later.