Unless you supplied bcp with the -P parameter, it prompts you for your password when you copy data in or out using the -n (native format) or -c (character format) parameters.
If you do not supply either the -n, -c or -f formatfile parameter, bcp prompts you for information for each field in the table or view.
The row terminator is the field terminator of the last field in the table, view, or file.
The bcp prompts, defaults, and the possible alternate user responses are:
Prompt | Default Provided | Possible User Response |
---|---|---|
File Storage Type |
Use database storage type for most fields except:
|
char to create or read a human-readable file; any SAP ASE datatype where implicit conversion is supported. |
Prefix Length |
|
0 if no prefix is desired; otherwise, defaults are recommended. |
Storage Length |
|
Default values, or greater, are recommended. |
Field or Row Terminator |
None |
Up to 30 characters, or one of the following:
|
Prefix length 0 | Prefix length 1, 2, or 4 | |
---|---|---|
No terminator | string--string-- | Pstring--Pstring-- |
Terminator | string--Tstring--T | Pstring--TPstring--T |
Prefix length 0 | Prefix length 1, 2 or 4 | |
---|---|---|
No terminator | string--string-- | PstringPstring |
Terminator | stringTstringT | PstringTPstringT |