home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer) / NeXT_Developer-3.3.iso / usr / sybase / doc / bcp_columns.man < prev    next >
Encoding:
Text File  |  1993-04-22  |  2.1 KB  |  67 lines

  1.  
  2.   1                       Version 4.0 -- 5/1/89              bcp_columns
  3.   ______________________________________________________________________
  4.  
  5.   NAME:  bcp_columns
  6.  
  7.   FUNCTION:
  8.        Set the total number of columns found in the host file.
  9.  
  10.   SYNTAX:
  11.        RETCODE bcp_columns(dbproc, host_colcount)
  12.  
  13.        DBPROCESS *dbproc;
  14.        int       host_colcount;
  15.  
  16.   COMMENTS:
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.   bcp_columns             Version 4.0 -- 5/1/89                        2
  25.   ______________________________________________________________________
  26.  
  27.        o This function sets the total number of columns found in a  host
  28.          file  for  use  with bulk copy. This routine may be called only
  29.          after bcp_init() has been called with a valid file name.
  30.        o You should call this routine only if you intend to use  a  host
  31.          file  format  that  differs  from the default. The default host
  32.          file format is described on the bcp_init() manual page.
  33.  
  34.        o After  calling  bcp_columns(),  you  must   call   bcp_colfmt()
  35.          host_colcount times, because you are defining a completely cus-
  36.          tom file format.
  37.        o For information on the bcp utility program, see its manual page
  38.          in the Commands Reference.
  39.  
  40.   PARAMETERS:
  41.        dbproc -  A pointer to the DBPROCESS structure that provides  the
  42.            connection for a particular front-end/SQL Server process.  It
  43.  
  44.  
  45.  
  46.   3                       Version 4.0 -- 5/1/89              bcp_columns
  47.   ______________________________________________________________________
  48.            contains all the information that DB-Library uses  to  manage
  49.            communications and data between the front end and SQL Server.
  50.        host_colcount -  The total number of columns in  the  host  file.
  51.            Even  if  you  are  preparing to bulk copy data from the host
  52.            file to a SQL Server table and do  not  intend  to  copy  all
  53.            columns in the host file, you must still set host_colcount to
  54.            the total number of host file columns.
  55.  
  56.   RETURNS:
  57.        SUCCEED or FAIL.
  58.  
  59.   SEE ALSO:
  60.        bcp_colfmt, bcp_init
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.