Sybase Technical Library - Product Manuals Home
[Search Forms] [Previous Section with Hits] [Next Section with Hits] [Clear Search] Expand Search

Prefix length [Table of Contents] Field and row terminators

Utility Guide

[-] Chapter 3 Using bcp to Transfer Data to and from Adaptive Server
[-] Changing the defaults: interactive bcp
[-] Field length

Field length

In almost all cases, use the bcp default value for the storage length while copying data out.

The terms "length" and "storage length" in this section refer to the operating system file, not to Adaptive Server field lengths.

Because you can change the default length by supplying another value, you must be familiar with the data to transfer. If you are copying character data in from other software, examine the source file carefully before choosing length values.

If the storage type is noncharacter, bcp stores the data in the operating system's native data representation and does not prompt for a length.

When bcp converts noncharacter data to character storage, it suggests a default field length that is large enough to store the data without truncating datetime data or causing an overflow of numeric data.


Prefix length [Table of Contents] Field and row terminators