e股脑电脑教程网
  • 首 页
  • 操作系统
  • 应用软件
  • 下载工具
  • 影音视频
  • 办公软件
  • 媒体制作
  • 网站建设
  • 平面设计
  • 数据库
  • 程序开发
  • 视频教程
编辑推荐: | 文章搜索:
您现在的位置: e股脑 >> 数据库 >> Sybase教程 >> bcp文档,自己看吧 >> 教程正文
 
教程搜索
 
 
相关教程
  • Sybase数据库简介
  • 为什么有时候数据库事务日志满了,不能
  • 在LINUX下安装 Sybase ASE 11.0.3.3
  • Dealing with identity gaps (Freebo
  • 关于sybase数据库的锁
  • SYBASE内存和缓冲区管理(rekcah0)
  • sybase 临时数据库tempdb (Arnold)
  • SYBASE dbccdb的安装配置攻略
  • 从数据库应用系统查找解决阻塞问题
  • Sybase数据库的碎片整理( arnold )
  • SYBASE数据库用户管理基本概念 (howto
  • sybase 珍藏系列之三(from shanhan)
  • sybase 珍藏系列之四(from shanhan)
  • SYBASE补丁安装指南
  • 解决 Error 605 错误的方案
  • Sybase TraceFlag 定义
 
 

图文教程


  • Windows抢了谁的饭碗 非主流操作系统To

  • 地球还是火星 平常心看“非主流”

  • 综合运用Office 2007批量制作奖状

  • 没有系统盘如何才能修复受损系统?

  • 巧妙运用Excel中边界的附加功能!
 
 
赞 助 商
 
 
bcp文档,自己看吧
  • 来源:e股脑
  • 点击次数:
  • 更新时间:2007-8-9

bcp

Description

Copies a database table to or from an operating system file in a user-specified format. bcp is located in $SYBASE/OCS-12_5/bin.

In Windows NT, the utility is bcp.exe, and is located in %SYBASE%\OCS-12_5\bin.

bcp

Description

Copies a database table to or from an operating system file in a user-specified format. bcp is located in $SYBASE/OCS-12_5/bin.

In Windows NT, the utility is bcp.exe, and is located in %SYBASE%\OCS-12_5\bin.

Syntax

bcp [[database_name.]owner.]table_name [:slice_number] {in | out} datafile

[-m maxerrors]

[-f formatfile]

[-e errfile]

[-F firstrow]

[-L lastrow]

[-b batchsize]

[-n]

[-c]

[-t field_terminator]

[-r row_terminator]

-U username

[-P password]

[-I interfaces_file]

[-S server]

[-a display_charset]

[-q datafile_charset]

[-z language]

[-A packet_size]

[-J client_charset]

[-T text_or_image_size]

[-E]

[-g id_start_value]

[-N]

[-X]

[-M LabelName LabelValue]

[-labeled]

[-K keytab_file]

[-R remote_server_principal]

[-V [security_options]]

[-Z security_mechanism]

[-Q]

Or

bcp -v

Parameters

database_name

is optional if the table being copied is in your default database or in master. Otherwise, you must specify a database name.


owner

is optional if you or the Database Owner owns the table being copied. If you do not specify an owner, bcp looks first for a table of that name that you own, and then looks for one owned by the Database Owner. If another user owns the table, you must specify the owner name or the command fails.

view_name

is the name of the view you are copying out.

table_name

is the name of the database table to copy. The table name cannot be a Transact-SQL reserved word.

Partition number partition_number does not exist in table table_name.

slice_number

is the number of the slice of the database table to copy.

partition_id

is the identifier of the partition into which to copy.

in | out

is the direction of the copy. in indicates a copy from a file into the database table; out indicates a copy to a file from the database table or view.

datafile

is the full path name of an operating system file. The path name can be from 1 to 255 characters in length.

-m maxerrors

is the maximum number of nonfatal errors permitted before bcp aborts the copy. bcp discards each row that it cannot insert (due to a data conversion error, or an attempt to insert a null value into a column that does not allow them), counting each rejected row as one error. If you do not include this parameter, bcp uses a default value of 10.

-f formatfile

is the full path name of a file with stored responses from a previous use of bcp on the same table. After you answer bcp's format questions, it prompts you to save your answers in a format file. Creation of the format file is optional. The default file name is bcp.fmt. The bcp program can refer to a format file when you are copying data so that you do not have to duplicate your previous format responses interactively. Use the -f parameter only if you previously created a format file that you want to use now for a copy in or copy out. If you do not specify this parameter, bcp interactively queries you for format information.


-e errfile

is the full path name of an error file where bcp stores any rows that it was unable to transfer from the file to the database. Error messages from bcp appear on your terminal. bcp creates an error file only when you specify this parameter.

-F firstrow

is the number of the first row to copy from an input file (default is the first row).

Avoid using the -F option when performing heavy-duty, multi-process copying, as it causes bcp to generally spend more effort to run, and does not provide you with a faster process. Instead, use -F for single-process, ad-hoc copying.

-L lastrow

is the number of the last row to copy from an input file (default is the last row).

-b batchsize

is the number of rows per batch of data copied (the default is to copy all the rows in one batch). Batching applies only when you are bulk copying in; it has no effect on bulk copying out. The smallest number bcp accepts for batchsize is 10. If you specify a smaller nu

1 2 3 4 5 下一页
  • 上一篇教程: Sybase 安装及系统管理(上)
  • 下一篇教程: RedHat AS上Sybase ASE和Oracle的ASYNC IO差异与性能影响
  •  

    关于本站 | 广告联系 | 版权声明 | 使用帮助

    Copyright © 2004-2008 www.egunao.com All rights reserved.