转至繁体中文版     | 网站首页 | 图文教程 | 资源下载 | 站长博客 | 图片素材 | 武汉seo | 武汉网站优化 | 
最新公告:     敏韬网|教学资源学习资料永久免费分享站!  [mintao  2008年9月2日]        
您现在的位置: 学习笔记 >> 图文教程 >> 数据库 >> SyBase >> 正文
usage of bcp command.(快来看)。         ★★★★

usage of bcp command.(快来看)。

作者:闵涛 文章来源:闵涛的学习笔记 点击数:3549 更新时间:2009/4/22 23:09:59
 applies  only when you are bulk copying in; it has no effect on bulk copying  out.
-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 the bcp program appear on  your terminal. bcp creates an error file only  when you specify this parameter.
-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 queries  you for format information interactively.
-F firstrow
is the number of the first row to copy from an  input file (default is the first row).
-g id_start_value
specifies the value of the IDENTITY column to use  as a starting point for copying data in.
You cannot use the -g and -E flags  together.
-I interfaces_file
specifies the name and location of the interfaces  file to search when connecting to Adaptive Server. If you do not specify -I, bcp looks  for an interfaces file (sql.ini on Windows  platforms) located in the ini directory, which  is below the directory specified by the SYBASE environment variable.
-J client_charset
specifies the character set to use on the client. bcp uses  a filter to convert input between client_charset and  the Adaptive Server character set.
-J client_charset requests  that Adaptive Server convert to and from client_charset,  the character set used on the client.
-J with no argument disables character  set conversion. Use this if the client and server use the same character  set.
Omitting -J sets the character set to a  default for the platform, which may not necessarily be the character  set that the client is using. See the System Administration Guide for  more information about character sets and associated flags.
The following error message will appear if an incorrect or  unrecognized character set is named with the -J parameter: 
Unrecognized localization object. Using default  value 'iso_1'.
Starting copy...
 => warning.
-L lastrow
is the number of the last row to copy from an input  file (default is the last row).
-m maxerrors
is the maximum number of errors permitted before bcp aborts  the copy. bcp discards each row that it cannot  build, counting each rejected row as one error. If you do not include  this parameter, bcp uses a default value of 10.
-P password
specifies an Adaptive Server password. If you do not  specify -P password, bcp prompts  for a password. You can leave out the -P flag  If your password is NULL.
-q datafile_charset
runs bcp to copy character data  to or from a file system that uses a character set different from  the client character set.
In Japanese language environments, the -q flag  translates Hankaku Katakana (half-width characters) into Zenkaku  Katakana (full-width characters).
The following error message will appear if the character translation  file(s) named with the -q parameter is missing,  or you mistype the name(s):
Error in attempting to determine the size of  a pair of translation tables.:'stat' utility failed.
The ascii_7 character set is compatible with  all character sets. If either the Adaptive Server character set or the  client's character set is set to ascii_7, any  7-bit ASCII character is allowed to pass between client and server unaltered.  Other characters produce conversion errors. Character set conversion  issues are covered more thoroughly in the System Administration Guide.
-r row_terminator
specifies the row terminator.
Warning! Do not use -t or -r parameters  with bcp in native format. Results are unpredictable  and data could become corrupted.
  When  specifying terminators from the command line with the -t or -r parameter,  you must escape characters that have special significance to the Windows  NT Command Prompt shell (see the following examples). Either place  a backslash in front of the special character or enclose it in quotes.  This is not necessary when bcp prompts you (interactive  mode).
-R remote_server_principal
specifies the principal name for the server as  defined to the security mechanism. By default, a server's  principal name matches the server's network name (which  is specified with the -S parameter or the DSQUERY environment  variable). Use the -R parameter when the server's  principal name and network name are not the same.
-S server
specifies the name of the Adaptive Server to which to  connect. If you specify -S with no argument, bcp uses  the server specified by the DSQUERY environment variable.
-t field_terminator
specifies the default field terminator.
Warning! Do not use -t or -r parameters  with bcp in native format. Results are unpredictable  and data could become corrupted.
-T text_or_image_size
allows you to specify, in bytes, the maximum length  of text or image data that Adaptive Server sends.  The default is 32K. If a text or an image field  is large

上一页  [1] [2] [3] [4] [5]  下一页


[办公软件]如何实现Office工具栏、菜单以及菜单命令重命名  [办公软件]如何在Office文档(大)括号内输入多行文字
[办公软件]如何在office(PowerPoint,Word,Excel)中制作带圈的…  [办公软件]批量删除Office文档(word,excle,powerpoint)中的超…
[办公软件]Office(Word,Excel)密码破解软件(Office Password…  [办公软件]如何让低版本的Office也能顺利编辑2007文档
[办公软件]设置office艺术字的形状  [办公软件]如何将Office菜单设置、工具设置、宏设置等应用到…
[办公软件]在Office(word,excel)中输入各级钢筋符号的方法  [办公软件]打开Office文档就提示安装的原因及解决方案
教程录入:mintao    责任编辑:mintao 
  • 上一篇教程:

  • 下一篇教程:
  • 【字体: 】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
      注:本站部分文章源于互联网,版权归原作者所有!如有侵权,请原作者与本站联系,本站将立即删除! 本站文章除特别注明外均可转载,但需注明出处! [MinTao学以致用网]
      网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)

    同类栏目
    · Sql Server  · MySql
    · Access  · ORACLE
    · SyBase  · 其他
    更多内容
    热门推荐 更多内容
  • 没有教程
  • 赞助链接
    更多内容
    闵涛博文 更多关于武汉SEO的内容
    500 - 内部服务器错误。

    500 - 内部服务器错误。

    您查找的资源存在问题,因而无法显示。

    | 设为首页 |加入收藏 | 联系站长 | 友情链接 | 版权申明 | 广告服务
    MinTao学以致用网

    Copyright @ 2007-2012 敏韬网(敏而好学,文韬武略--MinTao.Net)(学习笔记) Inc All Rights Reserved.
    闵涛 投放广告、内容合作请Q我! E_mail:admin@mintao.net(欢迎提供学习资源)

    站长:MinTao ICP备案号:鄂ICP备11006601号-18

    闵涛站盟:医药大全-武穴网A打造BCD……
    咸宁网络警察报警平台